Merge pull request #23019 from tkram01:sampleIdxFix

Fix for using sampleIdx to limit training data
pull/23321/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 8c64adb000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/ml/src/data.cpp

@ -904,7 +904,7 @@ public:
if( s )
{
j = s[i];
CV_Assert( 0 <= j && j < nsamples );
CV_Assert( 0 <= j && j < ((layout == ROW_SAMPLE) ? samples.rows : samples.cols) );
}
values[i] = src[j*sstep];
if( values[i] == MISSED_VAL )

Loading…
Cancel
Save