You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/Users/jacquelin/PycharmProjects/LR/production/train.py", line 27, in train_lr_model
lr_cf=LRCV(Cs=[1],penalty='l2',tol=0.0001,max_iter=500,cv=5).fit(train_feature,train_label)
File "/Users/jacquelin/anaconda3/lib/python3.6/site-packages/sklearn/linear_model/logistic.py", line 1754, in fit
" class: %r" % classes[0])
ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only one class: 0
could you run this train.py well?I can`t get the solution,please help me~~
The text was updated successfully, but these errors were encountered:
File "/Users/jacquelin/PycharmProjects/LR/production/train.py", line 27, in train_lr_model
lr_cf=LRCV(Cs=[1],penalty='l2',tol=0.0001,max_iter=500,cv=5).fit(train_feature,train_label)
File "/Users/jacquelin/anaconda3/lib/python3.6/site-packages/sklearn/linear_model/logistic.py", line 1754, in fit
" class: %r" % classes[0])
ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only one class: 0
could you run this train.py well?I can`t get the solution,please help me~~
The text was updated successfully, but these errors were encountered: