5d81bc9e8e19ab31f3e85f88207538e9f478d7d6,tests/test_classifier/test_threshold.py,TestDiscriminationThreshold,test_pandas_integration,#TestDiscriminationThreshold#,98
Before Change
// Load the occupancy dataset from fixtures
data = self.load_data("occupancy")
target = "occupancy"
features = [
"temperature", "relative_humidity", "light", "C02", "humidity"
]
// Create instances and target
X = pd.DataFrame(data[features])
y = pd.Series(data[target].astype(int))
classes = ["unoccupied", "occupied"]
// Create the visualizer
After Change
_, ax = plt.subplots()
// Load the occupancy dataset from fixtures
data = load_occupancy(return_dataset=True)
X, y = data.to_pandas()
classes = ["unoccupied", "occupied"]
// Create the visualizer
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_classifier/test_threshold.py
Class Name: TestDiscriminationThreshold
Method Name: test_pandas_integration
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_classifier/test_classification_report.py
Class Name: TestClassificationReport
Method Name: test_pandas_integration
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_target/test_class_balance.py
Class Name: TestClassBalance
Method Name: test_pandas_occupancy_compare
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_classifier/test_threshold.py
Class Name: TestDiscriminationThreshold
Method Name: test_pandas_integration