Commit 7d36690b authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix for kNN classification.

parent 38f909ea
Pipeline #3248 canceled with stage
......@@ -1568,6 +1568,9 @@ class RSImage_ClusterPredictor(object):
"sub-clustering. Setting 'n_clusters' to 1.")
self.n_clusters = 1
if method == 'kNN' and self.n_clusters > self.kNN_n_neighbors:
self.kNN_n_neighbors = self.n_clusters
def __getstate__(self):
"""Defines how the attributes of ReferenceCube_Generator instances are pickled."""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment