Skip to content

Commit

Permalink
10. adding of eeg dataset with bayesian tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qnater committed Sep 27, 2024
1 parent 043bc5a commit 54e109c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tests/env/optimal_parameters_stmvl_test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[stmvl_test]
window_size = "2"
gamma = 0.999999
alpha = "2"
2 changes: 1 addition & 1 deletion tests/test_opti_bayesian_cdrec.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ def test_optimization_bayesian_cdrec(self):

Optimization.save_optimization(optimal_params=optimal_params, algorithm=algorithm+"_test")

self.assertTrue(metrics_optimal["RMSE"] > metrics_default["RMSE"], True, f"Expected {metrics_optimal['RMSE']} > {metrics_default['RMSE']}")
self.assertTrue(metrics_optimal["RMSE"] < metrics_default["RMSE"], True, f"Expected {metrics_optimal['RMSE']} > {metrics_default['RMSE']}")
self.assertTrue(yi > 0, True)
2 changes: 1 addition & 1 deletion tests/test_opti_bayesian_iim.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ def test_optimization_bayesian_iim(self):

Optimization.save_optimization(optimal_params=optimal_params, algorithm=algorithm+"_test")

self.assertTrue(metrics_optimal["RMSE"] > metrics_default["RMSE"], True)
self.assertTrue(metrics_optimal["RMSE"] < metrics_default["RMSE"], True, f"Expected {metrics_optimal['RMSE']} > {metrics_default['RMSE']}")
self.assertTrue(yi > 0, True)
2 changes: 1 addition & 1 deletion tests/test_opti_bayesian_mrnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ def test_optimization_bayesian_mrnn(self):

Optimization.save_optimization(optimal_params=optimal_params, algorithm=algorithm+"_test")

self.assertTrue(metrics_optimal["RMSE"] > metrics_default["RMSE"], True)
self.assertTrue(metrics_optimal["RMSE"] < metrics_default["RMSE"], True, f"Expected {metrics_optimal['RMSE']} > {metrics_default['RMSE']}")
self.assertTrue(yi > 0, True)
2 changes: 1 addition & 1 deletion tests/test_opti_bayesian_stmvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ def test_optimization_bayesian_stmvl(self):

Optimization.save_optimization(optimal_params=optimal_params, algorithm=algorithm+"_test")

self.assertTrue(metrics_optimal["RMSE"] > metrics_default["RMSE"], True)
self.assertTrue(metrics_optimal["RMSE"] < metrics_default["RMSE"], True, f"Expected {metrics_optimal['RMSE']} > {metrics_default['RMSE']}")
self.assertTrue(yi > 0, True)

0 comments on commit 54e109c

Please sign in to comment.