5d81bc9e8e19ab31f3e85f88207538e9f478d7d6,tests/test_classifier/test_classification_report.py,TestClassificationReport,test_pandas_integration,#TestClassificationReport#,102
Before Change
_, ax = plt.subplots()
// 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))
// Create train/test splits
splits = tts(X, y, test_size=0.2, random_state=4512)
After Change
_, ax = plt.subplots()
// Load the occupancy dataset from fixtures
data = load_occupancy(return_dataset=True)
X, y = data.to_pandas()
// Create train/test splits
splits = tts(X, y, test_size=0.2, random_state=4512)
X_train, X_test, y_train, y_test = splits
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
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_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_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_classification_report.py
Class Name: TestClassificationReport
Method Name: test_pandas_integration