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.

Passing categorical data to Sklearn Decision Tree

There are several posts about how to encode categorical data to Sklearn Decision trees, but from Sklearn documentation, we got …

python scikit-learn decision-tree
Cannot import scikits-learn even though it seems to be installed

Per the scikit-learn user guide, I installed scikit-learn using pip install -U scikit-learn. So using pip search scikit-learn, I get …

python scikit-learn scikits
XGBoost XGBClassifier Defaults in Python

I am attempting to use XGBoosts classifier to classify some binary data. When I do the simplest thing and just …

python scikit-learn classification analytics xgboost
Impute categorical missing values in scikit-learn

I've got pandas data with some columns of text type. There are some NaN values along with these text columns. …

python pandas scikit-learn imputation
ValueError: Unknown label type: 'unknown'

I try to run following code. Btw, I am new to both python and sklearn. import pandas as pd import …

python pandas numpy scikit-learn logistic-regression
How to find the importance of the features for a logistic regression model?

I have a binary prediction model trained by logistic regression algorithm. I want know which features(predictors) are more important …

python machine-learning scikit-learn logistic-regression
Will scikit-learn utilize GPU?

Reading implementation of scikit-learn in tensroflow : http://learningtensorflow.com/lesson6/ and scikit-learn : http://scikit-learn.org/stable/modules/generated/sklearn.cluster.…

python tensorflow scikit-learn k-means neuraxle
sklearn Logistic Regression "ValueError: Found array with dim 3. Estimator expected <= 2."

I attempt to solve this problem 6 in this notebook. The question is to train a simple model on this data …

python scikit-learn logistic-regression
scikit-learn .predict() default threshold

I'm working on a classification problem with unbalanced classes (5% 1's). I want to predict the class, not the probability. In …

python machine-learning classification scikit-learn
Get Confusion Matrix From a Keras Multiclass Model

I am building a multiclass model with Keras. model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy']) model.fit(X_…

python keras scikit-learn multiclass-classification