Deducing neighborhoods of classes from a fitted model