Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[Example] Add docstring for test optimizer and test score (#13286)
Browse files Browse the repository at this point in the history
* update the doc for test_optimizer

* add docstring for test_score
  • Loading branch information
stu1130 authored and szha committed Nov 16, 2018
1 parent 2983185 commit d3f5340
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp-package/example/test_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
5 changes: 5 additions & 0 deletions cpp-package/example/test_score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

/*!
* Xin Li [email protected]
* 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 <chrono>
#include "utils.h"
Expand Down

0 comments on commit d3f5340

Please sign in to comment.