1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Wrappers for load methods of EM, LR, SVMSGD and Normal Bayes Classifier

This commit is contained in:
chrizandr
2017-01-29 18:51:55 +05:30
parent aa5caf83f6
commit 519fbdb8ab
5 changed files with 66 additions and 0 deletions
+6
View File
@@ -127,6 +127,12 @@ Ptr<LogisticRegression> LogisticRegression::create()
return makePtr<LogisticRegressionImpl>();
}
Ptr<LogisticRegression> LogisticRegression::load(const String& filepath, const String& nodeName)
{
return Algorithm::load<LogisticRegression>(filepath, nodeName);
}
bool LogisticRegressionImpl::train(const Ptr<TrainData>& trainData, int)
{
// return value