Open mrdeds opened 6 years ago
@hundredblocks
ValueError: Classification metrics can't handle a mix of continuous and multiclass targets
Solved! There are some elements that are Nan on y_test and/or y_predicted_counts. I tried something like this: def nanToZero(nanlist): newlist=[0 if math.isnan(x) else x for x in nanlist] return newlist
def nanToZero(nanlist):
newlist=[0 if math.isnan(x) else x for x in nanlist]
return newlist
@hundredblocks
ValueError: Classification metrics can't handle a mix of continuous and multiclass targets