Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/examples not running #145

Merged
merged 14 commits into from
Jun 5, 2023
36 changes: 7 additions & 29 deletions .github/workflows/deploy_ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: deploy_ghpages.yml
- name: Generate HTML docs
env:
FIREBASE_CERTIFICATE: ${{ secrets.FIREBASE_CERTIFICATE }}
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "doc/"
Expand All @@ -32,32 +39,3 @@ jobs:
with:
name: DocHTML
path: doc/build/html/

# deploy_docs:
# if: github.ref == 'refs/heads/master'
# needs:
# build_docs
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: DocHTML
# path: doc/build/html/
# - name: Commit to documentation branch
# run: |
# git clone --no-checkout --depth 1 https://github.com/${{ github.repository_owner }}/qndiag.git --branch gh-pages --single-branch gh-pages
# cp -r doc/build/html/* gh-pages/
# cd gh-pages
# touch .nojekyll
# git config --local user.email "pyriemann@github.com"
# git config --local user.name "pyriemann GitHub Action"
# git add .
# git commit -m "Update documentation" -a || true
# - name: Push changes
# uses: ad-m/github-push-action@v0.6.0
# with:
# branch: gh-pages
# directory: gh-pages
# github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ scikit-learn
joblib
pandas
cvxpy==1.3.1
git+https://github.com/Qiskit/qiskit-machine-learning#egg=qiskit_machine_learning
qiskit_machine_learning==0.6.1
qiskit-ibm-provider==0.5.2
qiskit-optimization==0.5.0
qiskit-aer==0.12.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
zorder=1,
palette="Set1",
)
sns.pointplot(data=results, y="score", x="pipeline", ax=ax, zorder=1, palette="Set1")
sns.pointplot(data=results, y="score", x="pipeline", ax=ax, palette="Set1")

ax.set_ylabel("ROC AUC")
ax.set_ylim(0.3, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# size of the xdawn filter
"nfilter": [2], # [1, 2, 3]
# hyperparameter for the SVC classifier
"gamma": [None], # [None, 0.05, 0.1, 0.15]
"gamma": [0.1], # [None, 0.05, 0.1, 0.15]
# Determine the number of "run" on the quantum machine (simulated or real)
# the higher is this number, the lower the variability.
"shots": [1024], # [512, 1024, 2048]
Expand Down Expand Up @@ -83,7 +83,7 @@ def search(params: dict):
return grid.best_params_


def analyze_multiple(l_params: list[dict]):
def analyze_multiple(l_params: list):
best_params = []
for params in l_params:
params_space = customize(params)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cython
git+https://github.com/pyRiemann/pyRiemann#egg=pyriemann
git+https://github.com/Qiskit/qiskit-machine-learning#egg=qiskit_machine_learning
qiskit_machine_learning==0.6.1
qiskit-ibm-provider==0.5.2
qiskit-optimization==0.5.0
qiskit-aer==0.12.0
Expand Down