concrete_NLP_tutorial
concrete_NLP_tutorial copied to clipboard
On def get_metrics(y_true, y_predicted): Error
@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