Skip to content

Commit

Permalink
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 fdf4467 commit 3b40dbf
Show file tree
Hide file tree
Showing 18 changed files with 163 additions and 30 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pytest_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest_contamination.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest_imp_cdrec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest_imp_iim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest_imp_mrnn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest_imp_stmvl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pytest_loading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/pytest_opt_cdrec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

name: Pytest - ImputeGAP - OPT - CDREC - 8

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
lfs: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
pip install -r requirements.txt
pip install mypy
pip install pytest
- name: Run pytest
run: python -m pytest ./tests/test_opti_bayesian_cdrec.py
33 changes: 33 additions & 0 deletions .github/workflows/pytest_opt_iim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

name: Pytest - ImputeGAP - OPT - IIM - 8

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
lfs: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
pip install -r requirements.txt
pip install mypy
pip install pytest
- name: Run pytest
run: python -m pytest ./tests/test_opti_bayesian_iim.py
33 changes: 33 additions & 0 deletions .github/workflows/pytest_opt_mrnn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

name: Pytest - ImputeGAP - OPT - MRNN - 8

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
lfs: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
pip install -r requirements.txt
pip install mypy
pip install pytest
- name: Run pytest
run: python -m pytest ./tests/test_opti_bayesian_mrnn.py
33 changes: 33 additions & 0 deletions .github/workflows/pytest_opt_stmvl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

name: Pytest - ImputeGAP - OPT - STMVL - 8

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
lfs: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libmlpack-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python3-dev
pip install -r requirements.txt
pip install mypy
pip install pytest
- name: Run pytest
run: python -m pytest ./tests/test_opti_bayesian_stmvl.py
1 change: 1 addition & 0 deletions .github/workflows/pytest_shap_explainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +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
pip install -r requirements.txt
pip install mypy
pip install pytest
Expand Down
47 changes: 20 additions & 27 deletions .idea/workspace.xml

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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![My Logo](assets/imputegab_logo.png)
![My Logo](assets/logo_imputegab.png)

# Welcome to ImputeGAP
ImputeGAP is a unified framework for imputation algorithms that provides a narrow-waist interface between algorithm evaluation and parameterization for datasets issued from various domains ranging from neuroscience, medicine, climate to energy.
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion imputegap/contamination/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![My Logo](../../assets/imputegab_logo.png)
![My Logo](../../assets/logo_imputegab.png)

# Scenarios
<table>
Expand Down
Binary file not shown.
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)
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 3b40dbf

Please sign in to comment.