Random Forest NAN at Confidence values below 0.5

thanks for the response.
I tried this but the result at these pixels is -1 (NoData). Is this caused by the RF/KD algorithm or the module?