Why is that we install the scikit-learn package with:
conda install scikit-learn
but then import (modules from) the package in a script using the name sklearn
, e.g.:
from sklearn import x
scikit-learn
isn't a valid identifier in python, so it can't be that. I suppose that they could have named the package scikit_learn
, but that's a lot to type so I suppose they just decided to shorten the package name for convenience.
Of course, if you're so inclined, you can:
import sklearn as scikit_learn
:-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With