Skip to Content.

mget-help - [mget-help] Failure to execute Predict Random Forest From Rasters

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


[mget-help] Failure to execute Predict Random Forest From Rasters


Chronological Thread 
  • From: Marc Nelson <>
  • To:
  • Subject: [mget-help] Failure to execute Predict Random Forest From Rasters
  • Date: Mon, 30 Jan 2017 16:07:03 +0100

Hi Jason / team,

I'm getting an error when trying to run the 'Predict Random Forest From Rasters' tool. I have 20 sat bands and 1 topographic metric as my variables. Based on the image below, have I entered the Predictor Variable fields correctly?

Inline image 1

Here's the code, thanks so much in advance:

Running script RandomForestModelPredictFromArcGISRasters...
Failed script RandomForestModelPredictFromArcGISRasters...

Traceback (most recent call last):
  File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\RandomForestModelPredictFromArcGISRasters.py", line 5, in <module>
    ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.Statistics.Modeling', 'RandomForestModel', 'PredictFromArcGISRasters')
  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\ArcGISScripts.py", line 210, in ExecuteMethodFromCommandLineAsArcGISTool
    exec sourceCode in globals(), locals()
  File "<string>", line 1, in <module>
  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Statistics\Modeling.py", line 776, in PredictFromArcGISRasters
    _PredictFromArcGISRasters('randomForest', _(u'Fit Random Forest Model'), inputModelFile, outputResponseRaster, cutoff, constantPredictors, predictorRasters, templateRaster, ignoreOutOfRangeValues, None, buildPyramids, overwriteExisting)
  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Statistics\Modeling.py", line 1570, in _PredictFromArcGISRasters
    cellSize = templateDescribe.MeanCellWidth
  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\ArcGIS.py", line 1015, in __getattr__
    raise ArcGISError(_(u'Failed to get the value of the %s attribute of ArcGIS %s object 0x%08X. This may result from a problem with your inputs or it may indicate a programming mistake in this tool or ArcGIS itself. Please check your inputs and try again. Also review any preceding error messages and the detailed error information that appears at the end of this message. If you suspect a programming mistake in this tool or ArcGIS, please contact the author of this tool for assistance. Detailed error information: The following exception was raised when the property retrieved: %s: %s') % (name, self._Name, id(self._Object), e.__class__.__name__, unicode(e)))
ArcGISError: Failed to get the value of the MeanCellWidth attribute of ArcGIS Describe object 0x4FF61CE0. This may result from a problem with your inputs or it may indicate a programming mistake in this tool or ArcGIS itself. Please check your inputs and try again. Also review any preceding error messages and the detailed error information that appears at the end of this message. If you suspect a programming mistake in this tool or ArcGIS, please contact the author of this tool for assistance. Detailed error information: The following exception was raised when the property retrieved: AttributeError: DescribeData: Method MeanCellWidth does not exist

Failed to execute (RandomForestModelPredictFromArcGISRasters).
Failed at Mon Jan 30 16:02:02 2017 (Elapsed Time: 0,60 seconds)



Archive powered by MHonArc 2.6.19.

Top of Page