Top "Sklearn-pandas" questions

Python module providing a bridge between Scikit-Learn’s Machine Learning methods and pandas-style DataFrames

'DataFrame' object has no attribute 'ravel' when transforming target variable?

I was fitting a logistic regression with a subset dataset. After splitting the dataset and fitting the model, I got …

python numpy logistic-regression sklearn-pandas
use Featureunion in scikit-learn to combine two pandas columns for tfidf

While using this as a model for spam classification, I'd like to add an additional feature of the Subject plus …

pandas scikit-learn sklearn-pandas
How to do Onehotencoding in Sklearn Pipeline

I am trying to oneHotEncode the categorical variables of my Pandas dataframe, which includes both categorical and continues variables. I …

python scikit-learn pipeline sklearn-pandas
HOW TO LABEL the FEATURE IMPORTANCE with forests of trees?

I use sklearn to plot the feature importance for forests of trees. The dataframe is named 'heart'. Here the code …

python numpy matplotlib scikit-learn sklearn-pandas
Inverse Transform Predicted Results

I have a training data CSV with three columns (two for data and a third for targets) and I successfully …

python machine-learning scikit-learn sklearn-pandas inverse-transform
Sklearn SVM: SVR and SVC, getting the same prediction for every input

Here is a paste of the code: SVM sample code I checked out a couple of the other answers to …

python scikit-learn sklearn-pandas
Coverting Back One Hot Encoded Results back to single Column in Python

I was doing Multi-class Classification using Keras.It contained 5 classes of Output. I converted the single class vector to matrix …

python numpy scikit-learn keras sklearn-pandas
How to use KBinsDiscretizer to make continuous data into bins in Sklearn?

I am working on a ML algorithm in which I tried to convert the continuous target values into small bins …

python-3.x numpy machine-learning scikit-learn sklearn-pandas
DecisionTreeClassifier predict_proba returns 0 or 1

I m trying to use the decision tree classified to identify two classes (renamed 0 and 1) based on certain parameters. I …

python decision-tree roc sklearn-pandas
Access Rows by integers and Columns by labels Pandas

My data is like this: [First row is headers] Name,Email,Age Sachith,[email protected],23 Sim,[email protected],234 …

python pandas sklearn-pandas