About 50 results
Open links in new tab
  1. 'super' object has no attribute '__sklearn_tags__'

    Dec 18, 2024 · 'super' object has no attribute '__sklearn_tags__'. This occurs when I invoke the fit method on the RandomizedSearchCV object. I suspect it could be related to compatibility …

  2. 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, …

  3. How to use pickle to save sklearn model - Stack Overflow

    Feb 26, 2019 · I want to dump and load my Sklearn trained model using Pickle. How to do that?

  4. python - ImportError in importing from sklearn: cannot import …

    Mar 7, 2013 · I had problems importing SKLEARN after installing a new 64bit version of Python 3.4 from python.org. Turns out that it was the SCIPY module that was broken, and alos failed …

  5. python - How to use sklearn fit_transform with pandas and return ...

    Mar 1, 2016 · Edit 2: Came across the sklearn-pandas package. It's focused on making scikit-learn easier to use with pandas. sklearn-pandas is especially useful when you need to apply …

  6. ImportError: No module named model_selection - Stack Overflow

    Nov 20, 2016 · I am trying to use train_test_split function and write: from sklearn.model_selection import train_test_split and this causes ImportError: No module named model_selection Why? …

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

    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 …

  8. Find p-value (significance) in scikit-learn LinearRegression

    Sep 8, 2021 · How can I find the p-value (significance) of each coefficient? lm = sklearn.linear_model.LinearRegression () lm.fit (x,y)

  9. 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, …

  10. 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 …