Commit c7854677 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

Merge branch '2181_bug_knn' into 'develop'

Fix KNearestNeighborsMachineLearningModel

Closes #2181

See merge request !810
parents 0499b4f9 a2cd00a3
Pipeline #7395 passed with stages
in 4 minutes and 1 second
......@@ -170,6 +170,7 @@ void KNearestNeighborsMachineLearningModel<TInputValue, TTargetValue>::Load(cons
cv::FileStorage fs(filename, cv::FileStorage::READ);
m_KNearestModel->read(fs.getFirstTopLevelNode());
m_DecisionRule = (int)(fs.getFirstTopLevelNode()["DecisionRule"]);
m_K = m_KNearestModel->getDefaultK();
return;
}
ifs.open(filename);
......
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