From 5591cfa8d2ba079ebccf08559c7eeb77c28ec837 Mon Sep 17 00:00:00 2001 From: KARTHEEKCIC Date: Thu, 8 Feb 2018 23:16:23 +0530 Subject: [PATCH] Style Fix --- src/mlpack/methods/perceptron/perceptron_main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mlpack/methods/perceptron/perceptron_main.cpp b/src/mlpack/methods/perceptron/perceptron_main.cpp index 4cc4e27929..e821a3d4ca 100644 --- a/src/mlpack/methods/perceptron/perceptron_main.cpp +++ b/src/mlpack/methods/perceptron/perceptron_main.cpp @@ -178,8 +178,9 @@ static void mlpackMain() { labelsIn = std::move(CLI::GetParam>("labels")); - //Checking the size of the responses and training data - if(labelsIn.n_cols != trainingData.n_cols) { + // Checking the size of the responses and training data + if (labelsIn.n_cols != trainingData.n_cols) + { Log::Fatal << "The responses must have the same number of columns " "as the training set." << endl; } @@ -189,8 +190,8 @@ static void mlpackMain() // Checking the size of training data if no labels are passed if (trainingData.n_rows < 2) { - Log::Fatal << "Can't get responses from training data " - "since it has less than 2 rows." << endl; + Log::Fatal << "Can't get responses from training data " + "since it has less than 2 rows." << endl; } // Use the last row of the training data as the labels.