From 8ce2f509d221cce6b1214dbdf42ee5b507cb0249 Mon Sep 17 00:00:00 2001 From: stu1130 Date: Thu, 15 Nov 2018 10:44:20 -0800 Subject: [PATCH 1/2] update the doc for test_optimizer --- cpp-package/example/test_optimizer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp-package/example/test_optimizer.cpp b/cpp-package/example/test_optimizer.cpp index ee1201228568..42547ea6c7c9 100644 --- a/cpp-package/example/test_optimizer.cpp +++ b/cpp-package/example/test_optimizer.cpp @@ -15,6 +15,10 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. + * + * The file is used for testing if the optimizer could be created more than 1. + * By running: build/test_optimizer + * It return 0(means no error) if it succeed otherwise 1(error). */ #include "mxnet-cpp/MxNetCpp.h" From 571055762db3558d6038d3e603ab12c01ce2ef2e Mon Sep 17 00:00:00 2001 From: stu1130 Date: Thu, 15 Nov 2018 10:50:47 -0800 Subject: [PATCH 2/2] add docstring for test_score --- cpp-package/example/test_score.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpp-package/example/test_score.cpp b/cpp-package/example/test_score.cpp index f92560fe8f77..9252701e2ae6 100644 --- a/cpp-package/example/test_score.cpp +++ b/cpp-package/example/test_score.cpp @@ -19,6 +19,11 @@ /*! * Xin Li yakumolx@gmail.com + * The file is used for testing if the score(accurary) we get + * is better than the threshold we set using mlp model. + * By running: build/test_score 0.75 + * 0.75 here means the threshold score + * It return 0 if we can achieve higher score than threshold, otherwise 1 */ #include #include "utils.h"