Skip to content

Commit

Permalink
3. 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 390895d commit 7fe9991
Show file tree
Hide file tree
Showing 19 changed files with 44 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_contamination.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_imp_cdrec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_imp_iim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_imp_mrnn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_imp_stmvl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_loading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_opt_cdrec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_opt_iim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_opt_mrnn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_opt_stmvl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest_shap_explainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
sudo apt-get install python3-dev build-essential
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
41 changes: 26 additions & 15 deletions .idea/workspace.xml

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

Binary file modified imputegap/imputation/__pycache__/imputation.cpython-312.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion imputegap/imputation/imputation.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def evaluate_params(ground_truth, contamination, configuration, algorithm="cdrec
imputation, error_measures = Imputation.MR.cdrec(ground_truth, contamination, (rank, eps, iters))
elif algorithm == 'iim':
learning_neighbours = configuration
alg_code = "iim " + re.sub(r'[\W_]', '', str(learning_neighbours))
alg_code = "iim " + learning_neighbours
imputation, error_measures = Imputation.Regression.iim_imputation(ground_truth, contamination, (learning_neighbours, alg_code))
elif algorithm == 'mrnn':
hidden_dim, learning_rate, iterations, keep_prob, seq_len = configuration
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy==1.21.5
numpy==1.13.3
pandas==2.0.3
matplotlib==3.7.5
toml==0.10.2
Expand All @@ -8,6 +8,7 @@ setuptools==75.1.0
tensorflow==2.13.1
shap==0.44.1
pycatch22==0.4.5
scikit-optimize==0.10.2
types-toml
types-setuptools
wheel
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_opti_bayesian_iim.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_file_path(set_name="test"):

class TestOptiIMM(unittest.TestCase):

def test_optimization_bayesian_stmvl(self):
def test_optimization_bayesian_iim(self):
"""
the goal is to test if only the simple optimization with stmvl has the expected outcome
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/test_opti_bayesian_mrnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def get_file_path(set_name="test"):
return resolve_path(f'../imputegap/dataset/{set_name}.txt', f'./imputegap/dataset/{set_name}.txt')


class TestOptiSTMVL(unittest.TestCase):
class TestOptiMRNN(unittest.TestCase):

def test_optimization_bayesian_stmvl(self):
def test_optimization_bayesian_mrnn(self):
"""
the goal is to test if only the simple optimization with mrnn has the expected outcome
"""
Expand Down

0 comments on commit 7fe9991

Please sign in to comment.