Empty pixels NaN values afer ML Classification

After doing a ML classification, some of the pixels have NaN as value

Any idea what is the cause?
M