-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinit loop in stratified sampling #28
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stratified sampling uses the next procedure:
(see https://github.com/nextgis/molusce/blob/master/algorithms/models/sampler/sampler.py#L326-L334)
So if a pixel of the transition class is located near raster boundaries, then at least one neighbor of the selected pixel lies outside => the pixel can't be used in sample => the pixel is skipped.
The problem appears when ALL pixels of a transition class lie near boundaries. In this case we get infinite loop.
The text was updated successfully, but these errors were encountered: