removed a couple of unnecessary comments in Logistic Regression training method

This commit is contained in:
Rahul Kavi 2013-11-11 15:29:19 -05:00 committed by Maksim Shabunin
parent f20db35b78
commit ae02ecec60

View 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);
// new_theta = compute_batch_gradient(data_t, labels, init_theta);
//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);
@ -177,7 +176,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);
// new_theta = compute_batch_gradient(data_t, labels, init_theta);
// 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);