From 43e1e27a1c7e5f3fe18c4d57090bbba0bdcceed2 Mon Sep 17 00:00:00 2001 From: jeffin sam Date: Mon, 4 May 2020 00:42:58 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Ryan Curtin --- HISTORY.md | 1 - src/mlpack/methods/preprocess/preprocess_split_main.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index e7714b124a..95fd15edb9 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -91,7 +91,6 @@ * Add Soft Shrink Activation Function (#2174). * Add Hinge Embedding Loss Function (#2229). - * Add Cosine Embedding Loss Function (#2209). * Add Margin Ranking Loss Function (#2264). diff --git a/src/mlpack/methods/preprocess/preprocess_split_main.cpp b/src/mlpack/methods/preprocess/preprocess_split_main.cpp index b975ab6ea6..ccedb11b43 100644 --- a/src/mlpack/methods/preprocess/preprocess_split_main.cpp +++ b/src/mlpack/methods/preprocess/preprocess_split_main.cpp @@ -45,12 +45,12 @@ PROGRAM_INFO("Split Data", PRINT_CALL("preprocess_split", "input", "X", "training", "X_train", "test", "X_test", "test_ratio", 0.4) + "\n\n" - "Also by default the dataset is shuffled and splited, you can provide " + - PRINT_PARAM_STRING("no_shuffle") +" to avoid shuffling of the data, " + - "an example to avoid shuffling of data is as" + "Also by default the dataset is shuffled and split; you can provide the " + + PRINT_PARAM_STRING("no_shuffle") + " option to avoid shuffling the " + "data; an example to avoid shuffling of data is:" "\n\n" + PRINT_CALL("preprocess_split", "input", "X", "training", "X_train", "test", - "X_test", "test_ratio", 0.4 , "no_shuffle", true) + + "X_test", "test_ratio", 0.4, "no_shuffle", true) + "\n\n" "If we had a dataset " + PRINT_DATASET("X") + " and associated labels " + PRINT_DATASET("y") + ", and we wanted to split these into " +