This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make scikit-learn an optional dependency (#524)
* Make scikit-learn an optional dependency We previously had scikit-learn as a requirement that always needed to be installed. However it was only ever used by the measurement discriminators and not needed for ignis in general. Since this is a fairly large package it is a bit heavy to require for every install especially if the discriminators aren't being used. This commit removes scikit-learn from the requirements list and adds it as an optional dependency. Co-authored-by: Christopher J. Wood <[email protected]>
- Loading branch information
1 parent
864663d
commit d6f1ad7
Showing
7 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/scikit-learn-is-optional-0540027be0003aad.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The ``scikit-learn`` dependency is no longer required and is now an optional | ||
requirement. If you're using the IQ measurement discriminators | ||
(:class:`~qiskit.ignis.measurement.IQDiscriminationFitter`, | ||
:class:`~qiskit.ignis.measurement.LinearIQDiscriminationFitter`, | ||
:class:`~qiskit.ignis.measurement.QuadraticIQDiscriminationFitter`, | ||
or :class:`~qiskit.ignis.measurement.SklearnIQDiscriminator`) you will | ||
now need to manually install scikit-learn, either by running | ||
``pip install scikit-learn`` or when you're also installing | ||
qiskit-ignis with ``pip install qiskit-ignis[iq]``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ jupyter-sphinx;python_version<'3.9' | |
reno | ||
matplotlib | ||
pyfakefs | ||
scikit-learn>=0.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters