Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Make scikit-learn an optional dependency #524

Merged

Conversation

mtreinish
Copy link
Collaborator

Summary

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.

Details and comments

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.
@ShellyGarion
Copy link
Contributor

Perhaps in the future we would like to use ML tools for advanced experiment analysis

@mtreinish
Copy link
Collaborator Author

Well we can leave it as a hard requirement. I was under the assumption that sklearn was only used by the discriminators and since that's not widely used by all ignis users it felt like a better fit as an optional dependency since scikit learn is large package. But, if there are plans to add more scikit-learn usage to the rest of ignis it probably doesn't make sense to do this then

@ShellyGarion
Copy link
Contributor

@chriseclectic - what is your opinion?

@chriseclectic chriseclectic merged commit d6f1ad7 into qiskit-community:master Mar 30, 2021
@mtreinish mtreinish added the Changelog: API Change Include in the Changed section of the changelog label Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog: API Change Include in the Changed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants