(self)
| 1087 | pass |
| 1088 | |
| 1089 | def test_sklearn(self): |
| 1090 | learner = modAL.models.learners.ActiveLearner( |
| 1091 | estimator=RandomForestClassifier(n_estimators=10), |
| 1092 | X_training=np.random.rand(10, 10), |
| 1093 | y_training=np.random.randint(0, 2, size=(10,)) |
| 1094 | ) |
| 1095 | learner.fit(np.random.rand(10, 10), |
| 1096 | np.random.randint(0, 2, size=(10,))) |
| 1097 | pred = learner.predict(np.random.rand(10, 10)) |
| 1098 | learner.predict_proba(np.random.rand(10, 10)) |
| 1099 | confusion_matrix(pred, np.random.randint(0, 2, size=(10,))) |
| 1100 | |
| 1101 | def test_sparse_matrices(self): |
| 1102 | query_strategies = [ |
nothing calls this directly
no test coverage detected