09bfc1b3ef8494cf17a192bbe83df576ccdac86f,cesium/tests/test_predict.py,,test_predict_classification,#,34
Before Change
model,
custom_features_script=None)
for fname, results in pred_results_dict.items():
for el in results["pred_results"]:
assert(el[0] in [b"class1", b"class2", b"class3"]
or el in [b"class1", b"class2", b"class3"])
def test_predict_regression():
Test main predict function on multiple files (regression)
regressor_types = [model_type for model_type, model_class
in build_model.MODELS_TYPE_DICT.items()
After Change
preds = predict.predict_data_files(TS_CLASS_PATHS,
list(fset.data_vars), model,
custom_features_script=None)
if preds.prediction.values.ravel()[0].dtype == np.dtype("float"):
assert(all(preds.prediction.class_label == [b"class1", b"class2",
b"class3"]))
assert(preds.prediction.values.shape ==
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: cesium-ml/cesium
Commit Name: 09bfc1b3ef8494cf17a192bbe83df576ccdac86f
Time: 2016-06-29
Author: brettnaul@gmail.com
File Name: cesium/tests/test_predict.py
Class Name:
Method Name: test_predict_classification
Project Name: suavecode/SUAVE
Commit Name: e73418dbc43053ccb522e94e9846de1c88667b73
Time: 2017-04-01
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Components/Energy/Networks/Propulsor_Surrogate.py
Class Name: Propulsor_Surrogate
Method Name: build_surrogate
Project Name: dask/dask-image
Commit Name: f9aea094643fb3240193b0bc0f1908d5b84d82ab
Time: 2018-09-30
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: center_of_mass