From 876058e3d5b4c8eb9ecda3ff67eba5f32ff3e312 Mon Sep 17 00:00:00 2001 From: KARTHEEKCIC Date: Thu, 8 Feb 2018 23:17:42 +0530 Subject: [PATCH] Style Fix --- .../logistic_regression/logistic_regression_main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp index fa08aa96d8..5981baf9b2 100644 --- a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp +++ b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp @@ -238,8 +238,8 @@ static void mlpackMain() } else if (CLI::HasParam("training")) { - // Checking the size of training data if no labels are passed - if (regressors.n_rows < 2) + // Checking the size of training data if no labels are passed + if (regressors.n_rows < 2) { Log::Fatal << "Can't get responses from training data " "since it has less than 2 rows." << endl; @@ -290,10 +290,10 @@ static void mlpackMain() testSet = std::move(CLI::GetParam("test")); // checking the dimensionality of the test data - if (testSet.n_rows != model.Parameters().n_cols-1) + if (testSet.n_rows != model->Parameters().n_cols - 1) { - Log::Fatal << "Test data dimensionality (" << testSet.n_rows << ") must " - << "be the same as the dimensionality of the Training Data (" << model.Parameters().n_cols-1 << ")!" << endl; + Log::Fatal << "Test data dimensionality (" << testSet.n_rows << ") must " + << "be the same as the dimensionality of the Training Data (" << model->Parameters().n_cols-1 << ")!" << endl; } // We must perform predictions on the test set. Training (and the