Hector Blog

hack your way to success

Tag

deep learning

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… Continue Reading →

© 2017 Hector Blog — Powered by WordPress

Theme by Anders NorenUp ↑