提交 9b0ef7bb 编写于 作者: B berak

ml: fix caching of internal state when changing the impl in KNearest

上级 7b36e575
......@@ -437,7 +437,16 @@ public:
{
if (val != BRUTE_FORCE && val != KDTREE)
val = BRUTE_FORCE;
int k = getDefaultK();
int e = getEmax();
bool c = getIsClassifier();
initImpl(val);
setDefaultK(k);
setEmax(e);
setIsClassifier(c);
}
public:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册