I'm running a Forest Based Classification and Regression (Spatial Statistics tools), which has worked every other time I've tried it (with various combinations of these variables, all of the layers have been tested & all worked during previous runs). It is now running but ending with the below error message. It gives me results like variable importance, out of bag error, etc in the details pop-up, but none of the layers/files (prediction raster, trained features, uncertainty rasters, variable importance table, confusion matrix) are being created despite the details pop-up saying they are.
Anyone else have this problem or know what I can do to fix it? Thanks!!
Error messages:
Traceback (most recent call last):
File "<string>", line 11580, in execute
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Scripts\SSForest.py", line 7987, in execute
created = rasterWorkFlow(*infoRasterArg)
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Scripts\SSForest.py", line 7854, in rasterWorkFlow
rfRun.executeModel(rfTraining, rfTest = rfTest, rasterInfo = None,
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Scripts\SSForest.py", line 5771, in executeModel
self.processRasterByParts(rfTest, randSeed, hpar, newSRF)
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Scripts\SSForest.py", line 5573, in processRasterByParts
shareMsg = self.reportShare(rfTraining, shareTraining, shareTest, sharePredict)
File "c:\program files\arcgis\pro\Resources\ArcToolbox\Scripts\SSForest.py", line 5130, in reportShare
dataT = shareTraining[cnt]
TypeError: 'NoneType' object is not subscriptable
Additional Details
Using ArcGIS Pro 3.1.2 (tried before and after updating to the current version, same errors). Tried turning computer on and off, restarting ArcGIS, etc.
Takes about 30 mins to run. Computer has not had issues running this in the past.
Parameters: No categorical variables, input data are 24 numeric raster layers. 500 trees, 100% of data available per tree, 0% excluded for validation, 20 runs for validation (I want the data from the variable importance table), calculate uncertainty -> TRUE,
The only other warning I get is WARNING 110228: The Output Classification Performance Table cannot be created when Training Data Excluded For Validation is set to zero. (this is expected as I have already witheld my training data for validation in order to avoid inflated accuracy values due to autocorrelation)
EDITS:
- I've seen this https://gis.stackexchange.com/questions/419834/error-in-running-forest-based-classification-and-regr... which appears to be the same layer, but using a different training feature layer did not solve my problem
- I only get the error when I predict to raster - the train-only option does not have this issue.