Spaces:
Sleeping
Sleeping
Commit
·
bff0f22
1
Parent(s):
336625e
also returning accuracy score from test data from the api
Browse files- app.py +1 -1
- ml-vis +1 -1
- nn/train.py +1 -0
app.py
CHANGED
@@ -45,4 +45,4 @@ def neural_net():
|
|
45 |
|
46 |
|
47 |
if __name__ == "__main__":
|
48 |
-
app.run(
|
|
|
45 |
|
46 |
|
47 |
if __name__ == "__main__":
|
48 |
+
app.run()
|
ml-vis
CHANGED
@@ -1 +1 @@
|
|
1 |
-
Subproject commit
|
|
|
1 |
+
Subproject commit 63131debee222b78f47a847e8cf8e3ab1f94526b
|
nn/train.py
CHANGED
@@ -88,6 +88,7 @@ def train(nn: NN) -> dict:
|
|
88 |
"log_loss": log_loss(y_true=y_test, y_pred=y_hat),
|
89 |
"accuracy": accuracy_score(y_true=y_test, y_pred=y_hat),
|
90 |
"accuracy_scores": accuracy_scores,
|
|
|
91 |
}
|
92 |
|
93 |
|
|
|
88 |
"log_loss": log_loss(y_true=y_test, y_pred=y_hat),
|
89 |
"accuracy": accuracy_score(y_true=y_test, y_pred=y_hat),
|
90 |
"accuracy_scores": accuracy_scores,
|
91 |
+
"test_accuracy": accuracy_score(y_true=y_test, y_pred=y_hat)
|
92 |
}
|
93 |
|
94 |
|