Top "Sklearn-pandas" questions

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

Sklearn plot_tree plot is too small

I have this simple code: clf = tree.DecisionTreeClassifier() clf = clf.fit(X, y) tree.plot_tree(clf.fit(X, y)) …

python graphics sklearn-pandas
How to get feature importance in logistic regression using weights?

I have a dataset of reviews which has a class label of positive/negative. I am applying Logistic regression to …

machine-learning scikit-learn logistic-regression sklearn-pandas
Using K-means with cosine similarity - Python

I am trying to implement Kmeans algorithm in python which will use cosine distance instead of euclidean distance as distance …

python scikit-learn k-means cosine-similarity sklearn-pandas
statistical summary table in sklearn.linear_model.ridge?

In OLS form StatsModels, results.summary shows the summary of regression results (such as AIC, BIC, R-squared, ...). Is there any …

python statsmodels sklearn-pandas
Append tfidf to pandas dataframe

I have the following pandas structure: col1 col2 col3 text 1 1 0 meaningful text 5 9 7 trees 7 8 2 text I'd like to vectorise it using …

python dataframe tf-idf sklearn-pandas
feature_names must be unique - Xgboost

I am running the xgboost model for a very sparse matrix. I am getting this error. ValueError: feature_names must …

python pandas xgboost sklearn-pandas
GridSearchCV: "TypeError: 'StratifiedKFold' object is not iterable"

I want to perform GridSearchCV in a RandomForestClassifier, but data is not balanced, so I use StratifiedKFold: from sklearn.model_…

pandas scikit-learn grid-search sklearn-pandas
Converting a Pandas Dataframe column into one hot labels

I have a pandas dataframe similar to this: Col1 ABC 0 XYZ A 1 XYZ B 2 XYZ C By using the pandas …

python pandas sklearn-pandas one-hot-encoding
Sklearn LabelEncoder throws TypeError in sort

I am learning machine learning using Titanic dataset from Kaggle. I am using LabelEncoder of sklearn to transform text data …

machine-learning scikit-learn sklearn-pandas
difference between LinearRegression and svm.SVR(kernel="linear")

First there are questions on this forum very similar to this one but trust me none matches so no duplicating …

machine-learning scikit-learn regression python-3.5 sklearn-pandas