Tag Archives: solution

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 »