Skip to content

Commit

Permalink
Refactor and Clean (qiskit-community#11)
Browse files Browse the repository at this point in the history
* Refactor

* move distribution_learners files under qgan folder
  • Loading branch information
manoelmarques authored Mar 15, 2021
1 parent c1b224e commit 64c5a8e
Show file tree
Hide file tree
Showing 57 changed files with 144 additions and 3,706 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install-machine-learning/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ runs:
using: "composite"
steps:
- run : |
pip install -e .[torch,cvx]
pip install -e .[torch]
pip install -U -c constraints.txt -r requirements-dev.txt
shell: bash
1 change: 0 additions & 1 deletion .pylintdict
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ codeword
contravariance
currentmodule
cvs
cvxpy
data's
datapoints
dataset
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ To do this follow the instructions in the
package or refer to PyTorch [getting started](https://pytorch.org/get-started/locally/). PyTorch
being installed will enable the neural networks `PyTorchDiscriminator` component to be used with
the QGAN algorithm.
* **CVXPY**, may be installed using command `pip install 'qiskit-machine-learning[cvx]'` to enable use of the
`QSVM` and the classical `SklearnSVM` algorithms.

### Creating Your First Machine Learning Programming Experiment in Qiskit

Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions docs/apidocs/qiskit_machine_learning.utils.rst

This file was deleted.

2 changes: 0 additions & 2 deletions qiskit_machine_learning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
algorithms
circuit.library
datasets
multiclass_extensions
neural_networks
utils
"""

Expand Down
22 changes: 16 additions & 6 deletions qiskit_machine_learning/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
:toctree: ../stubs/
:nosignatures:
QSVM
VQC
SklearnSVM
Distribution Learners
+++++++++++++++++++++
Expand All @@ -37,16 +35,28 @@
:toctree: ../stubs/
:nosignatures:
DiscriminativeNetwork
GenerativeNetwork
NumPyDiscriminator
PyTorchDiscriminator
QuantumGenerator
QGAN
"""

from .classifiers import VQC, QSVM, SklearnSVM
from .distribution_learners import QGAN
from .classifiers import VQC
from .distribution_learners import (DiscriminativeNetwork,
GenerativeNetwork,
NumPyDiscriminator,
PyTorchDiscriminator,
QuantumGenerator, QGAN)

__all__ = [
'VQC',
'QSVM',
'SklearnSVM',
'DiscriminativeNetwork',
'GenerativeNetwork',
'NumPyDiscriminator',
'PyTorchDiscriminator',
'QuantumGenerator',
'QGAN',
]
7 changes: 2 additions & 5 deletions qiskit_machine_learning/algorithms/classifiers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
""" Classifiers Package """

from .vqc import VQC
from .qsvm import QSVM
from .sklearn_svm import SklearnSVM

__all__ = [
'VQC',
'QSVM',
'SklearnSVM']
'VQC'
]
19 changes: 0 additions & 19 deletions qiskit_machine_learning/algorithms/classifiers/qsvm/__init__.py

This file was deleted.

41 changes: 0 additions & 41 deletions qiskit_machine_learning/algorithms/classifiers/qsvm/_qsvm_abc.py

This file was deleted.

173 changes: 0 additions & 173 deletions qiskit_machine_learning/algorithms/classifiers/qsvm/_qsvm_binary.py

This file was deleted.

This file was deleted.

Loading

0 comments on commit 64c5a8e

Please sign in to comment.