Category Archives: python

Experiment : Supervised learning model to classify a Github Issue as enhancement or bug based purely on issue title

Quick Summary: I Mined more that 1,00,000¬†Issue data from Github open source repositories. Mined data included { issue title – string}, {issue description – paragraph } and {labels – discrete strings}.¬†Most of them were enhancement or bug. So started with a simple classifier which classifies an issue as Enhancement or… Read more »

Solution : This solver needs samples of at least 2 classes in the data, but the data contains only one class

So if you are trying to do build a classifier using sklear.linear_model & came across the error: ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only one class: 0 This is because of a bug in sklearn.linear_model module. Sparkit trains sklearn’s… Read more »