Top "Scikit-learn" questions

scikit-learn is a machine-learning library for Python that provides simple and efficient tools for data analysis and data mining, with a focus on machine learning.

ValueError: Expected 2D array, got 1D array instead:

While practicing Simple Linear Regression Model I got this error, I think there is something wrong with my data set. …

python-3.x scikit-learn linear-regression
where to put freeze_support() in a Python script?

I am confused about using freeze_support() for multiprocessing and I get a Runtime Error without it. I am only …

python scikit-learn multiprocessing runtime-error
How to increase the model accuracy of logistic regression in Scikit python?

I am trying to predict the admit variable with predictors such as gre,gpa and ranks.But the prediction accuracy …

python machine-learning scikit-learn regression logistic-regression
Python: how to normalize a confusion matrix?

I calculated a confusion matrix for my classifier using the method confusion_matrix() from the sklearn package. The diagonal elements …

python matrix scikit-learn normalization confusion-matrix
Sklearn, gridsearch: how to print out progress during the execution?

I am using GridSearch from sklearn to optimize parameters of the classifier. There is a lot of data, so the …

python logging scikit-learn
What are the pros and cons between get_dummies (Pandas) and OneHotEncoder (Scikit-learn)?

I'm learning different methods to convert categorical variables to numeric for machine-learning classifiers. I came across the pd.get_dummies …

python pandas machine-learning scikit-learn dummy-variable
how to resolve this ValueError: only 2 non-keyword arguments accepted sklearn python

hello i am new to sklearn in python and iam trying to learn it and use this module to predict …

python-3.x scikit-learn valueerror
How to tune parameters in Random Forest, using Scikit Learn?

class sklearn.ensemble.RandomForestClassifier(n_estimators=10, criterion='gini', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_…

python parameters machine-learning scikit-learn random-forest
How to interpret scikit's learn confusion matrix and classification report?

I have a sentiment analysis task, for this Im using this corpus the opinions have 5 classes (very neg, neg, neu, …

machine-learning nlp scikit-learn svm confusion-matrix
Save MinMaxScaler model in sklearn

I'm using the MinMaxScaler model in sklearn to normalize the features of a model. training_set = np.random.rand(4,4)*10 training_…

python machine-learning scikit-learn normalization