About 2,390,000 results
Open links in new tab
  1. Find p-value (significance) in scikit-learn LinearRegression

    Sep 8, 2021 · scikit-learn's LinearRegression doesn't calculate this information but you can easily extend the class to do it: from sklearn import linear_model from scipy import stats import …

  2. scikit learn - feature importance calculation in decision trees

    Mar 8, 2018 · I think feature importance depends on the implementation so we need to look at the documentation of scikit-learn. The feature importances. The higher, the more important the …

  3. How to save a trained model by scikit-learn? [duplicate]

    May 13, 2019 · From scikit-learn documentation: In the specific case of scikit-learn, it may be better to use joblib’s replacement of pickle (dump & load), which is more efficient on objects …

  4. scikit learn - Simple prediction using linear regression with python ...

    Apr 14, 2015 · Liner Regression: import pandas as pd import numpy as np import matplotlib.pyplot as plt data=pd.read_csv('Salary_Data.csv') X=data.iloc[:,:-1].values …

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

    I am trying to use train_test_split from package scikit Learn, but I am having trouble with parameter stratify. Hereafter is the code: from sklearn import cross_validation, datasets X = …

  6. scikit learn output metrics.classification_report into CSV/tab ...

    Sep 23, 2016 · As of scikit-learn v0.20, the easiest way to convert a classification report to a pandas Dataframe is by simply having the report returned as a dict: report = …

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

  8. Make regression model with categorical data with Scikit-Learn

    You are asking a general question about regression, not just regarding SciKit, so I'll try to answer in general terms. You are right about yes/no variables, you can encode them as binary …

  9. How to extract feature importances from an Sklearn pipeline

    Aug 5, 2016 · I've built a pipeline in Scikit-Learn with two steps: one to construct features, and the second is a RandomForestClassifier. While I can save that pipeline, look at various steps and …

  10. ModuleNotFoundError: No module named 'sklearn' - Stack Overflow

    Sep 8, 2017 · conda install scikit-learn Alternatively, as mentioned here, one can specify the channel as follows. conda install -c anaconda scikit-learn Let's say that one is working in the …

Refresh