Skip to content Skip to sidebar Skip to footer
Showing posts with the label Scikit Learn

How To Use Cross-validation After Transforming Features

I have dataset with categorical and non categorical values. I applied OneHotEncoder for categorical… Read more How To Use Cross-validation After Transforming Features

Notfittederror: Tfidfvectorizer - Vocabulary Wasn't Fitted

I am trying to build a sentiment analyzer using scikit-learn/pandas. Building and evaluating the mo… Read more Notfittederror: Tfidfvectorizer - Vocabulary Wasn't Fitted

Calculate Weighted Pairwise Distance Matrix In Python

I am trying to find the fastest way to perform the following pairwise distance calculation in Pytho… Read more Calculate Weighted Pairwise Distance Matrix In Python

Ensemble Learning Python-random Forest, Svm, Knn

I am trying to ensemble the classifiers Random forest, SVM and KNN. Here to ensemble, I'm using… Read more Ensemble Learning Python-random Forest, Svm, Knn

Sci-kit Learn: Reshape Your Data Either Using X.reshape(-1, 1)

I'm training a python (2.7.11) classifier for text classification and while running I'm get… Read more Sci-kit Learn: Reshape Your Data Either Using X.reshape(-1, 1)

Count Words In Python

I have a list of strings in python. list = [ 'Sentence1. Sentence2...', 'Sentence1. Sen… Read more Count Words In Python

How To Un-shuffle Data?

it may exist a method to coming back from the function shuffle from sklearn.utils? I explain bette… Read more How To Un-shuffle Data?

What Is _passthrough_scorer And How Can I Change Scorers In Gridsearchcv (sklearn)?

http://scikit-learn.org/stable/modules/generated/sklearn.grid_search.GridSearchCV.html (for referen… Read more What Is _passthrough_scorer And How Can I Change Scorers In Gridsearchcv (sklearn)?