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

    Dec 5, 2022 · 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 …

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

    Apr 4, 2016 · I wanna use scikit-learn. I have typed pip install -U scikit-learn pip3 install sklearn to install it; but when i type $ Python >>> import sklearn it returns ImportError: No module na...

  3. fit () vs fit_predict () methods in sklearn KMeans

    Mar 25, 2021 · KMeans is just one of the many models that sklearn has, and many share the same API. The basic functions are fit, which teaches the model using examples, and predict, which uses the …

  4. ModuleNotFoundError: No module named sklearn - Stack Overflow

    Aug 29, 2020 · When I run: from sklearn import datasets I get the error: ModuleNotFoundError: No module named 'sklearn' How can I solve this?

  5. ImportError: cannot import name 'joblib' from 'sklearn.externals'

    May 19, 2020 · I am trying to load my saved model from s3 using joblib import pandas as pd import numpy as np import json import subprocess import sqlalchemy from sklearn.externals import joblib …

  6. Stratified Train/Test-split in scikit-learn - Stack Overflow

    X, Xt, userInfo, userInfo_train = sklearn.cross_validation.train_test_split(X, userInfo) However, I'd like to stratify my training dataset. How do I do that? I've been looking into the StratifiedKFold method, but …

  7. what is the difference between 'transform' and 'fit_transform' in sklearn

    May 24, 2014 · In the sklearn-python toolbox, there are two functions transform and fit_transform about sklearn.decomposition.RandomizedPCA. The description of two functions are as follows But what is …

  8. pandas dataframe columns scaling with sklearn - Stack Overflow

    Jul 9, 2014 · I have a pandas dataframe with mixed type columns, and I'd like to apply sklearn's min_max_scaler to some of the columns. Ideally, I'd like to do these transformations in place, but …

  9. Plot trees for a Random Forest in Python with Scikit-Learn

    Oct 20, 2016 · I want to plot a decision tree of a random forest. So, i create the following code: clf = RandomForestClassifier(n_estimators=100) import pydotplus import six from sklearn import tree …

  10. python - How to find the importance of the features for a logistic ...

    Since scikit-learn 0.22, sklearn defines a sklearn.inspection module which implements permutation_importance, which can be used to find the most important features - higher value …