Skip to content

Commit

Permalink
adding badge (#28)
Browse files Browse the repository at this point in the history
* adding badge

* docfix

* removing html

* add whiteline

* adding command to build docs

* adding dev deps

* add endline
  • Loading branch information
vertefra authored Jul 2, 2024
1 parent 7341468 commit 3018df3
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/actions/setup_lint_and_test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ runs:
- name: run linting
run: make lint-check
shell: bash
- name: Check docs building
run: make docs-build
shell: bash
- name: Test with pytest
run: |
echo pytest tests
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,6 @@ HOSTNAME
__version__.py

.ruff_cache/
.vscode/
.vscode/

html/
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ build:
clean:
rm -rf build dist

docs-build:
cd docs && \
python -m sphinx -T -W --keep-going -b html -d _build/doctrees -D language=en . ./html

lint-check:
ruff check ./qcog_python_client && \
mypy ./qcog_python_client
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Qognitive Python Client Library

[![Documentation Status](https://readthedocs.com/projects/qognitive-qcog-python-client/badge/?version=latest)](https://qognitive-qcog-python-client.readthedocs-hosted.com/en/latest/?badge=latest)
[![.github/workflows/merge_to_develop.yml](https://github.com/qognitive/qcog-python-client/actions/workflows/merge_to_develop.yml/badge.svg?branch=develop)](https://github.com/qognitive/qcog-python-client/actions/workflows/merge_to_develop.yml)

[![.github/workflows/pypi.yml](https://github.com/qognitive/qcog-python-client/actions/workflows/pypi.yml/badge.svg)](https://github.com/qognitive/qcog-python-client/actions/workflows/pypi.yml)

The Qognitive Python Client library is a programmatic way of interacting with Qognitive's cloud computation API for running Quantum Cognition Machine Learning (QCML) models.

Expand Down
1 change: 1 addition & 0 deletions docs/examples/coil20.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Training the Model
Now set some training specific parameters and execute the training.

.. code-block:: python
from qcog_python_client.schema.parameters import AnalyticOptimizationParameters, LOBPCGFastStateParameters
qcml = qcml.train(
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/timeseries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ Training the Model
Now set some training specific parameters and execute the training.

.. code-block:: python
from qcog_python_client.schema.parameters import LOBPCGStateParameters, GradOptimizationParameters
qcml = qcml.train(
Expand Down Expand Up @@ -280,6 +281,7 @@ If you are running in the same session you can skip the next step, but if you ar
With our trained model loaded into the client, we can now run inference on the dataset.

.. code-block:: python
from qcog_python_client.schema.parameters import LOBPCGFastStateParameters
result_df = qcml.inference(
Expand Down
1 change: 1 addition & 0 deletions docs/examples/wisconsin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Training the Model
Now set some training specific parameters and execute the training.

.. code-block:: python
from qcog_python_client.schema.parameters import GradOptimizationParameters, LOBPCGFastStateParameters
qcml = qcml.train(
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pandas
numpy
aiohttp
typing_extensions
pydantic
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ dev = [
"pandas-stubs",
"types-requests",
"setuptools_scm[toml]>=8",
"sphinx",
"sphinx_rtd_theme"
]
examples = [
"scikit-learn",
Expand Down

0 comments on commit 3018df3

Please sign in to comment.