mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
ml: update checks
This commit is contained in:
@@ -479,7 +479,7 @@ public:
|
||||
float predict( InputArray samples, OutputArray results, int flags ) const CV_OVERRIDE
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
CV_Assert( samples.cols() == getVarCount() && samples.type() == CV_32F );
|
||||
CV_CheckEQ(samples.cols(), getVarCount(), "");
|
||||
return impl.predict(samples, results, flags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user