Jensen-holm commited on
Commit
bff0f22
·
1 Parent(s): 336625e

also returning accuracy score from test data from the api

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. ml-vis +1 -1
  3. nn/train.py +1 -0
app.py CHANGED
@@ -45,4 +45,4 @@ def neural_net():
45
 
46
 
47
  if __name__ == "__main__":
48
- app.run(debug=False)
 
45
 
46
 
47
  if __name__ == "__main__":
48
+ app.run()
ml-vis CHANGED
@@ -1 +1 @@
1
- Subproject commit 25374f53029979b4d35a79596baaf2f68174bc34
 
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