Skip to content

Commit 95ada87

Browse files
committed
minor fixes
1 parent 113c4af commit 95ada87

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

MachineLearning.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import argparse
1616
from sklearn.metrics import roc_auc_score, accuracy_score, log_loss
1717
from sklearn.neighbors import KNeighborsClassifier
18+
from sklearn.naive_bayes import GaussianNB
19+
from sklearn.gaussian_process import GaussianProcessClassifier
1820

1921
# TODO: change the order of sensors on a plot
2022
suffix = '__3_10_1_1_5'
@@ -58,7 +60,10 @@
5860
svm = SVC(probability=True, gamma='scale')
5961
rf = RandomForestClassifier(n_estimators=100, max_depth=2)
6062
knn = KNeighborsClassifier(n_neighbors=3)
61-
models_list = [lr, svm, rf, knn]
63+
naive_bayes = GaussianNB()
64+
gaussian_process_classifier = GaussianProcessClassifier()
65+
66+
models_list = [lr, svm, rf, knn, naive_bayes, gaussian_process_classifier]
6267

6368
n_emulations = 1000
6469
results_list = []
@@ -106,7 +111,9 @@
106111

107112
results_list.append(results)
108113

109-
# TODO: add emulations
114+
if n_emulation % 100 == 0:
115+
print(f'{n_emulation}/{n_emulations} emulations done')
116+
110117

111118
df_dict = {}
112119

0 commit comments

Comments
 (0)