From 390895d86c5e07111cf4edd1f38b01f1f3b7b505 Mon Sep 17 00:00:00 2001 From: qnater Date: Fri, 27 Sep 2024 15:38:32 +0200 Subject: [PATCH] 2. adding of eeg dataset with bayesian tests --- .idea/workspace.xml | 34 +++++++----------- env/default_values.toml | 2 +- .../__pycache__/imputation.cpython-312.pyc | Bin 11624 -> 11636 bytes imputegap/imputation/imputation.py | 6 ++-- .../algorithm_parameters.cpython-312.pyc | Bin 2692 -> 2713 bytes .../optimization/algorithm_parameters.py | 2 +- requirements.txt | 2 +- .../test_opti_bayesian_iim.cpython-312.pyc | Bin 3523 -> 3524 bytes tests/test_opti_bayesian_iim.py | 3 +- 9 files changed, 19 insertions(+), 30 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b7b3821..0188e16 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,22 +2,12 @@ - - - - - - - - - - - - - - - + + + + + - + - + @@ -173,16 +163,16 @@ + - + - @@ -211,7 +201,7 @@ - + @@ -235,7 +225,7 @@ - + diff --git a/env/default_values.toml b/env/default_values.toml index 618eb45..877848a 100644 --- a/env/default_values.toml +++ b/env/default_values.toml @@ -10,7 +10,7 @@ gamma = 0.85 alpha = 7 [iim] -neighbor = 10 +learning_neighbors = 10 algorithm_code = "iim 2" [mrnn] diff --git a/imputegap/imputation/__pycache__/imputation.cpython-312.pyc b/imputegap/imputation/__pycache__/imputation.cpython-312.pyc index 9bc19cbc5836514348b6da2ba3be0edd5b186fa5..734397fe7b1767a802198d7be26f907d522b57a0 100644 GIT binary patch delta 1038 zcmaD6^(Bh;G%qg~0}!0u@-6MqM&3JY!a_NziA8ytdFkTy}o^8%0D4GFm!r89XisF_`qFz@iZ zA*QiH^Ma_!W@D~;Hb#TZn*~;~FxpR!6_sK%oLnKQ%4P>Nv&eq(Vo^IrgUOFXr!aa= zE*CS=@&XAPfCv*1;R7TRf%r2!kZ57}!X(0}T?AHRGTBf~a`QW}b|!6qpxjEjt1Kk1eDQa zE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.py b/tests/test_opti_bayesian_iim.py index 69639c0..2d49dcd 100644 --- a/tests/test_opti_bayesian_iim.py +++ b/tests/test_opti_bayesian_iim.py @@ -55,8 +55,7 @@ def test_optimization_bayesian_stmvl(self): params = Imputation.load_parameters(query="default", algorithm=algorithm) params_optimal = (optimal_params['neighbor'], "iim 2") - _, metrics_optimal = Imputation.Regression.iim_imputation(ground_truth=gap.ts, contamination=ts_contaminated, - params=params_optimal) + _, metrics_optimal = Imputation.Regression.iim_imputation(ground_truth=gap.ts, contamination=ts_contaminated, params=params_optimal) _, metrics_default = Imputation.Regression.iim_imputation(ground_truth=gap.ts, contamination=ts_contaminated, params=params) Optimization.save_optimization(optimal_params=optimal_params, algorithm=algorithm+"_test")