Merge pull request #8019 from berak:patch-2
ml: fix small typo in lr.cpp (#8019)
This commit is contained in:
parent
a8e5d1d9fd
commit
89a740a62f
@ -579,7 +579,7 @@ void LogisticRegressionImpl::write(FileStorage& fs) const
|
|||||||
CV_Error(CV_StsBadArg,"file can't open. Check file path");
|
CV_Error(CV_StsBadArg,"file can't open. Check file path");
|
||||||
}
|
}
|
||||||
writeFormat(fs);
|
writeFormat(fs);
|
||||||
string desc = "Logisitic Regression Classifier";
|
string desc = "Logistic Regression Classifier";
|
||||||
fs<<"classifier"<<desc.c_str();
|
fs<<"classifier"<<desc.c_str();
|
||||||
fs<<"alpha"<<this->params.alpha;
|
fs<<"alpha"<<this->params.alpha;
|
||||||
fs<<"iterations"<<this->params.num_iters;
|
fs<<"iterations"<<this->params.num_iters;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user