Skip to content

Commit

Permalink
fix/examples not running (#145)
Browse files Browse the repository at this point in the history
* add `plot_` prefix

* remove zorder

* remove type annotation in analyze_multiple

* export FIREBASE_CERTIFICATE in workflow

* fix gamma default value

* ignore qiskit-ml deprecation for the moment

* add cache dependency to deploy_ghpages.yml

* fix cache

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* fix pip cache

* change key

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* trigger cache

* [pre-commit.ci] auto fixes from pre-commit.com hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
gcattan and pre-commit-ci[bot] authored Jun 5, 2023
1 parent a6c90dc commit aa1f419
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 34 deletions.
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

0 comments on commit aa1f419

Please sign in to comment.