2ab1119596b420cc696a783271d617562ccf7e28,examples/plot_EEG_Example.py,,,#,123

Before Change


                                          params_to_optimize=rfc_param_grid)
knn_param_grid = {"n_neighbors": [1, 2, 3, 4]}
model_guo = build_model_from_featureset(fset_guo.isel(name=train),
                                        KNeighborsClassifier(),
                                        params_to_optimize=knn_param_grid)
model_dwt = build_model_from_featureset(fset_dwt.isel(name=train),
                                        KNeighborsClassifier(),

After Change


preds_dwt = model_dwt.predict(fset_dwt)

print("Built-in cesium features: training accuracy={:.2%}, test accuracy={:.2%}".format(
          accuracy_score(preds_cesium[train], eeg["classes"][train]),
          accuracy_score(preds_cesium[test], eeg["classes"][test])))
print("Guo et al. features: training accuracy={:.2%}, test accuracy={:.2%}".format(
          accuracy_score(preds_guo[train], eeg["classes"][train]),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: 2ab1119596b420cc696a783271d617562ccf7e28
Time: 2017-03-29
Author: brettnaul@gmail.com
File Name: examples/plot_EEG_Example.py
Class Name:
Method Name:


Project Name: biolab/orange3
Commit Name: af046c87cb241de921b092851ba2b02d274248cd
Time: 2015-02-09
Author: tomaz.hocevar@fri.uni-lj.si
File Name: Orange/classification/knn.py
Class Name: KNNLearner
Method Name: fit


Project Name: mlflow/mlflow
Commit Name: 856b3dd9a8d9a8db1e8ec5166485a83431461d4c
Time: 2018-12-19
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: tests/pyfunc/test_spark.py
Class Name: TestSparkUDFs
Method Name: setUp