Category "scikit-learn"

NameError: name 'tree' is not defined

Hey I'm new to Python and I am trying to follow along with a tutorial but I get this error: NameError: name 'tree' is not defined. The objective is obvio

How to use warm_start

I'd like to use the warm_start parameter to add training data to my random forest classifier. I expected it to be used like this: clf = RandomForestClassifier(

NameError: name 'predictions' is not defined

i am running the below code and getting this error. Please help: Error: NameError: name 'predictions' is not defined Code: import pandas as pd import numpy a

sklearn ImportError: No module named _check_build

I'm trying to import sklearn, however when I attempt to do so I receive the following: ------------------------------------------------------------------------

How to properly remove redundant components for Scikit-Learn's DPGMM?

I am using scikit-learn to implement the Dirichlet Process Gaussian Mixture Model: https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/mixture/dp

Multilayer perceptron in scikit-learn

I am trying to code a multilayer perceptron in scikit learn 0.18dev using MLPClassifier. I have used the solver lbgfs, however it gives me the warning : Converg

How to use `Dirichlet Process Gaussian Mixture Model` in Scikit-learn? (n_components?)

My understanding of "an infinite mixture model with the Dirichlet Process as a prior distribution on the number of clusters" is that the number of clusters is d

Scikit Learn SVC decision_function and predict

I'm trying to understand the relationship between decision_function and predict, which are instance methods of SVC (http://scikit-learn.org/stable/modules/gene

Plot confusion matrix sklearn with multiple labels

I am plotting a confusion matrix for a multiple labelled data, where labels look like: label1: 1, 0, 0, 0 label2: 0, 1, 0, 0 label3: 0, 0, 1, 0

GridSearchCV on LogisticRegression in scikit-learn

I am trying to optimize a logistic regression function in scikit-learn by using a cross-validated grid parameter search, but I can't seem to implement it. It

Speeding up grid search in sklearn

I am performing a grid search to identify the best SVM parameters. I am using ipython and sklearn. The code is slow and runs on only one core. How can this be s

sklearn model_selection Error: ImportError: cannot import name '_approximate_mode'

I'm trying to import sklearn model_selection but I'm getting the following error: ImportError Traceback (most recent call last) &