Select to view content in your preferred language

Wetland Identification Model--Train Random Trees Error

4097
10
Jump to solution
01-28-2021 05:40 AM
Labels (2)
anninarupe17
Emerging Contributor

Hello, all!

I'm using the Wetland Identification Model (following the paper Esri has provided), and I have been getting an error when running the Arc Hydro tool "Train Random Trees." I started out running through the WIM manually, just so I could understand what was going on. I made it to the "Train Random Trees" tool and I receive the following error:

'line 352', 'c:\\program files\\arcgis\\pro\\Resources\\ArcToolbox\\Scripts\\archydro\\trainrandomtrees.py', 'IndexError: boolean index did not match indexed array along dimension 0; dimension is 17000 but corresponding boolean dimension is 17421'

I have the 'scikit-learn' Python package installed (v 0.23.2) and the project environment is using the clone that this package is installed on. I've also tried running the model as a whole, but it fails at the same step and gives the same error. Any ideas on what might be happening?

Annina

0 Kudos
10 Replies
anninarupe17
Emerging Contributor

Gina, you're a freaking rockstar! Thanks for all of your advice and work on this tool!

0 Kudos