Skip to content

BUG: fix SMOTE crash with few input samples

Laurențiu Nicola requested to merge smote-few-samples-crash into develop

SMOTE does an out-of-bounds read if the number of neighbors to use is higher than the number of input samples:

image

then:

image

Use fewer neighbors in that case.

Untested because I currently can't compile OTB (#2409, #2410, #2411).

Edited by Laurențiu Nicola

Merge request reports

Loading