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.

What is python's equivalent of R's NA?

What is python's equivalent of R's NA? To be more specific: R has NaN, NA, NULL, Inf and -Inf. NA …

python numpy pandas scikit-learn data-scrubbing
ROC for multiclass classification

I'm doing different text classification experiments. Now I need to calculate the AUC-ROC for each task. For the binary classifications, …

python scikit-learn text-classification roc multiclass-classification
ValueError: setting an array element with a sequence. while using SVM in scikit-learn

I have been working on scikit-learn SVMs for a binary classification problem. I have calculated the features of audio files …

arrays python-2.7 csv scikit-learn svm
sklearn stratified sampling based on a column

I have a fairly large CSV file containing amazon review data which I read into a pandas data frame. I …

python pandas scikit-learn sklearn-pandas
Got continuous is not supported error in RandomForestRegressor

I'm just trying to do a simple RandomForestRegressor example. But while testing the accuracy I get this error /Users/noppanit/…

python pandas dataframe scikit-learn random-forest
What is the difference between SVC and SVM in scikit-learn?

From the documentation scikit-learn implements SVC, NuSVC and LinearSVC which are classes capable of performing multi-class classification on a dataset. …

machine-learning scikit-learn libsvm
The easiest way for getting feature names after running SelectKBest in Scikit Learn

I would like to make supervised learning. Until now I know to do supervised learning to all features. However, I …

python pandas scikit-learn feature-selection
Recovering features names of explained_variance_ratio_ in PCA with sklearn

I'm trying to recover from a PCA done with scikit-learn, which features are selected as relevant. A classic example with …

python machine-learning scikit-learn pca
Scikit Learn - K-Means - Elbow - criterion

Today i'm trying to learn something about K-means. I Have understand the algorithm and i know how it works. Now …

python machine-learning scikit-learn cluster-analysis k-means
Obtain eigen values and vectors from sklearn PCA

How I can get the the eigen values and eigen vectors of the PCA application? from sklearn.decomposition import PCA …

python scipy scikit-learn pca