Commit d1d7408a authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #11502 from berak:fix_knearest

parents 314246d3 9b0ef7bb
...@@ -437,7 +437,16 @@ public: ...@@ -437,7 +437,16 @@ public:
{ {
if (val != BRUTE_FORCE && val != KDTREE) if (val != BRUTE_FORCE && val != KDTREE)
val = BRUTE_FORCE; val = BRUTE_FORCE;
int k = getDefaultK();
int e = getEmax();
bool c = getIsClassifier();
initImpl(val); initImpl(val);
setDefaultK(k);
setEmax(e);
setIsClassifier(c);
} }
public: public:
......
Markdown is supported
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