5d81bc9e8e19ab31f3e85f88207538e9f478d7d6,tests/test_regressor/test_residuals.py,TestPredictionError,test_prediction_error_pandas,#TestPredictionError#,104
Before Change
_, ax = plt.subplots()
// Load the occupancy dataset from fixtures
data = self.load_data("energy")
target = "cooling_load"
features = [
"relative_compactness", "surface_area", "wall_area", "roof_area",
"overall_height", "orientation", "glazing_area",
"glazing_area_distribution"
]
// Create instances and target
X = pd.DataFrame(data[features])
y = pd.Series(data[target].astype(float))
// Create train/test splits
splits = tts(X, y, test_size=0.2, random_state=8873)
X_train, X_test, y_train, y_test = splits
After Change
_, ax = plt.subplots()
// Load the occupancy dataset from fixtures
data = load_energy(return_dataset=True)
X, y = data.to_pandas()
// Create train/test splits
splits = tts(X, y, test_size=0.2, random_state=8873)
X_train, X_test, y_train, y_test = splits
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 14
Instances
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_regressor/test_residuals.py
Class Name: TestPredictionError
Method Name: test_prediction_error_pandas
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_regressor/test_residuals.py
Class Name: TestResidualsPlot
Method Name: test_residuals_plot_pandas
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 5d81bc9e8e19ab31f3e85f88207538e9f478d7d6
Time: 2019-07-04
Author: rebeccabilbro@users.noreply.github.com
File Name: tests/test_regressor/test_residuals.py
Class Name: TestPredictionError
Method Name: test_prediction_error_pandas
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