When training samples are developed for raster classification (using irregular polygons to manually perform a supervised classification), how is class membership assigned to the raster pixels for training? I think it's one of the following ways:
The reason for my asking is that I’ve used python to developed a Withheld Data Test for my Random Forest/random trees classifier, which I’ve had to do manually.
The Withheld Data Test involves:
I hope that this makes sense! It would be great to get clarification so that I can tune my model properly. Also, this matters as the training samples I need to develop are quite small (i.e. IDing shadow for trees can be like 5x5 pixels, and for an entire site I’m often only training about 5000 pixels). It makes a big difference to my model (the 30% of test pixels can actually become 25 – 35% of the TS pixels if it's done inconsistently with how Esri does things). Thankfully, I'm getting 98% kappa value already, so the small sample sizing is working well.
Any help is greatly appreciated. \m/
Cell assignment depends on the geometry being converted. Discussions are in the following links
How Polygon To Raster works | ArcGIS Pro documentation
How Point to Raster works | ArcGIS Pro documentation
raster sampling by rasters would have to consider cell alignment and the snap raster
Cell Alignment | ArcGIS Pro documentation
Snap Raster | ArcGIS Pro documentation
so I would be concerned if the rasters are misaligned