removed extra comments in train method
authorRahul Kavi <leorahul16@gmail.com>
Mon, 11 Nov 2013 21:43:14 +0000 (16:43 -0500)
committerMaksim Shabunin <maksim.shabunin@itseez.com>
Mon, 18 Aug 2014 15:06:58 +0000 (19:06 +0400)
modules/ml/src/lr.cpp

index 2411ea3..2089bb8 100644 (file)
@@ -159,7 +159,6 @@ bool LogisticRegression::train(cv::InputArray data_ip, cv::InputArray labels_ip)
     if(num_classes == 2)
     {
         labels_l.convertTo(labels, CV_32F);
-        //currently supported training methods LogisticRegression::BATCH and LogisticRegression::MINI_BATCH
         if(this->params.train_method == LogisticRegression::BATCH)
             new_theta = compute_batch_gradient(data_t, labels, init_theta);
         else
@@ -176,7 +175,6 @@ bool LogisticRegression::train(cv::InputArray data_ip, cv::InputArray labels_ip)
         {
             new_local_labels = (labels_l == it->second)/255;
             new_local_labels.convertTo(labels, CV_32F);
-            // currently supported training methods LogisticRegression::BATCH and LogisticRegression::MINI_BATCH
             if(this->params.train_method == LogisticRegression::BATCH)
                 new_theta = compute_batch_gradient(data_t, labels, init_theta);
             else