About 50 results
Open links in new tab
  1. Stratified Train/Test-split in scikit-learn - Stack Overflow

    Scikit-learn provides two modules for Stratified Splitting: StratifiedKFold : This module is useful as a direct k-fold cross-validation operator: as in it will set up n_folds training/testing sets such that …

  2. Label encoding across multiple columns in scikit-learn

    Jun 28, 2014 · I'm trying to use scikit-learn's LabelEncoder to encode a pandas DataFrame of string labels. As the dataframe has many (50+) columns, I want to avoid creating a LabelEncoder object for …

  3. scikit-learn .predict() default threshold - Stack Overflow

    5 Scikit-learn classifiers generally choose the predicted class by taking the argmax of scores/probabilities (see LogisticRegression and DecisionTreeClassifier). For binary classification …

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

    Sep 8, 2021 · Find p-value (significance) in scikit-learn LinearRegression Asked 11 years ago Modified 2 years, 2 months ago Viewed 443k times

  5. how to check which version of nltk, scikit learn installed?

    Feb 13, 2015 · # The scikit-learn version is 0.15.2. Note that not all Python packages are guaranteed to have a __version__ attribute, so for some others it may fail, but for nltk and scikit-learn at least it will …

  6. 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 confusing, …

  7. How to extract the decision rules from scikit-learn decision-tree?

    2 Here is a function, printing rules of a scikit-learn decision tree under python 3 and with offsets for conditional blocks to make the structure more readable:

  8. scikit learn - Is there a library function for Root mean square error ...

    Jun 20, 2013 · What is RMSE? Also known as MSE, RMD, or RMS. What problem does it solve? If you understand RMSE: (Root mean squared error), MSE: (Mean Squared Error) RMD (Root mean …

  9. Is it possible to specify your own distance function using scikit-learn ...

    Apr 3, 2011 · Yes, in the current stable version of sklearn (scikit-learn 1.1.3), you can easily use your own distance metric. All you have to do is create a class that inherits from sklearn.cluster.KMeans …

  10. scikit learn - How are feature_importances in RandomForestClassifier ...

    In RandomForestClassifier, estimators_ attribute is a list of DecisionTreeClassifier (as mentioned in the documentation). In order to compute the feature_importances_ for the RandomForestClassifier, in …