About 8,240,000 results
Open links in new tab
  1. Difference between scikit-learn and sklearn (now deprecated)

    Regarding the difference sklearn vs. scikit-learn: The package "scikit-learn" is recommended to be installed using pip install scikit-learn but in your code imported using import sklearn. A bit …

  2. Using scikit-learn LinearRegression to plot a linear fit

    Dec 3, 2016 · The sklearn.LinearRegression.fit takes two arguments. First the "training data", which should be a 2D array, and second the "target values". In the case considered here, we …

  3. return coefficients from Pipeline object in sklearn

    May 9, 2017 · Firstly, as the User Guide of sklearn points out, The Pipline is built using a list of (key, value) pairs (i.e. steps), where the key is a string containing the name you want to give …

  4. Parameter "stratify" from method "train_test_split" (scikit Learn)

    Then second, to correct imbalance you eventually need to run oversampling or undersampling on the training set. Many Sklearn classifier has a parameter called class-weight which you can set …

  5. How do I import scikit-learn in a jupyter notebook?

    Sep 17, 2019 · I created a fresh conda environment for using scikit-learn and used conda install <package> to install scikit-learn, jupyter, pandas, etc. for compatible dependencies.. I …

  6. A progress bar for scikit-learn? - Stack Overflow

    Dec 13, 2015 · Yet curiously ExtraTreesClassifier which also belongs to sklearn.ensemble (just like AdaBoostClassifier), does allow it. Looks like not all members of sklearn.ensemble share …

  7. PCA on sklearn - how to interpret pca.components_

    Terminology: First of all, the results of a PCA are usually discussed in terms of component scores, sometimes called factor scores (the transformed variable values corresponding to a particular …

  8. ImportError: No module named sklearn (Python) - Stack Overflow

    Apr 4, 2016 · pip install -U scikit-learn pip3 install sklearn to install it; but when i type $ Python >>> import sklearn it returns . ImportError: No module named sklearn I followed other tutorials, but …

  9. How to compute precision, recall, accuracy and f1-score for the ...

    Jul 15, 2015 · from sklearn.datasets import make_classification from sklearn.cross_validation import StratifiedShuffleSplit from sklearn.metrics import accuracy_score, f1_score, …

  10. How to install and use scikit-learn in Python - Stack Overflow

    ModuleNotFoundError: No module named 'sklearn.decomposition' I do have the scikit_learn-0.19.0-py3.6.egg-info and sklearn packages in my Python directory, so I'm not sure why it …

Refresh