mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Squashed commit of the following:
commit5c379aa1b8
Merge:e800800
3646967
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Wed Apr 8 12:44:46 2015 +0300 Merge branch 'master' of https://github.com/Nuzhny007/opencv commite800800bec
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Wed Apr 8 12:43:38 2015 +0300 Squashed commit of the following: commit3646967deb
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Tue Apr 7 15:48:30 2015 +0300 Fix bug in SVM::trainAuto commit0c24ccf538
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Tue Apr 7 15:43:59 2015 +0300 Revert "Fix bug in SVM::trainAuto" This reverts commit225da0226e
. commit225da0226e
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Tue Apr 7 15:09:47 2015 +0300 Fix bug in SVM::trainAuto commit3646967deb
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Tue Apr 7 15:48:30 2015 +0300 Fix bug in SVM::trainAuto commit0c24ccf538
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Tue Apr 7 15:43:59 2015 +0300 Revert "Fix bug in SVM::trainAuto" This reverts commit225da0226e
. commit225da0226e
Author: Сергей Нужный <snuzhny@stc-spb.ru> Date: Tue Apr 7 15:09:47 2015 +0300 Fix bug in SVM::trainAuto
This commit is contained in:
parent
581923fa57
commit
4a65f3cee2
@ -1787,7 +1787,7 @@ public:
|
|||||||
if( !do_train( temp_train_samples, temp_train_responses ))
|
if( !do_train( temp_train_samples, temp_train_responses ))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for( i = 0; i < test_sample_count; i++ )
|
for( i = 0; i < train_sample_count; i++ )
|
||||||
{
|
{
|
||||||
j = sidx[(i+start+train_sample_count) % sample_count];
|
j = sidx[(i+start+train_sample_count) % sample_count];
|
||||||
memcpy(temp_train_samples.ptr(i), samples.ptr(j), sample_size);
|
memcpy(temp_train_samples.ptr(i), samples.ptr(j), sample_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user