plot random forest based prediction model in raster

I am trying to plot my random forest-based prediction model in a raster using the following code lines:
Output_raster <-raster::predict(RF_model, object=Raster_stack, type="prob")
writeRaster(Output_raster, "Output_raster", format='GTiff')
but it is giving me my training data as an output. where I am going wrong, kindly help. thank you

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.