Open bpstewar opened 5 years ago
The error stems from Scikit-learn not liking your input image data (must be some missing data). I added a check for nans and infs in mpglue.classification
. Pull the latest version to implement the changes.
The issue is with some of the edge images - somehow I calculated spfeas for areas outside of the image, so some of my spfeas tiles have consistent 0s throughout the stack. I can now run a classification against the good tiles, but I am losing my edge tiles. Is it possible to apply a mask to the image for classification? I couldn't quite figure it out through the classify -h prompt.
You can currently use --mask-background
, which accepts an image name or an array. Any zero in the mask is set as zero in the predictions. The drawback of this is that it first makes predictions on all pixels.
I am open to any enhancement suggestions. Maybe what you want is to not predict on pixels under a mask?
I am encountering the following error when running classify, any suggestions?