I have a validation dataset which has ground truths labelled "nan" values.
The expected ground truth is to return a String, but when nothing is detected from the data, np.nan will be returned.
What I'm doing right now is to pandas replace my predicted values that is np.nan into "nan" thus it is then compared with the "nan" from ground truth so I know that my algorithm is predicting correctly.
Is there a better way to compare/handle nan values?