mlpack
Classes | Macros | Functions
softmax_regression_test.cpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include <mlpack/methods/softmax_regression/softmax_regression_main.cpp>
#include "test_helper.hpp"
#include "../test_catch_tools.hpp"
#include "../catch.hpp"
Include dependency graph for softmax_regression_test.cpp:

Classes

struct  SoftmaxRegressionTestFixture
 

Macros

#define BINDING_TYPE   BINDING_TYPE_TEST
 

Functions

 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionOutputDimensionTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Ensure that we get desired dimensions when both training data and labels are passed.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionLabelsLessDimensionTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Ensure that labels are necessarily passed when training.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionModelReuseTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Ensure that saved model can be used again.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionMaxItrTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Ensure that max_iterations is always non-negative.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionLambdaTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Ensure that lambda is always non-negative.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionNumClassesTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Ensure that number_of_classes is always positive.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionTrainingVerTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Make sure only one of training data or pre-trained model is passed.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionDiffLambdaTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Check that output object parameters are different for different lambda values.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionDiffMaxItrTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Check that output object parameters are different for different numbers of max_iterations.
 
 TEST_CASE_METHOD (SoftmaxRegressionTestFixture, "SoftmaxRegressionDiffInterceptTest", "[SoftmaxRegressionMainTest][BindingsTests]")
 Check that output object parameter for no_intercept term is one less than with intercept term.
 

Detailed Description

Author
Manish Kumar

Test mlpackMain() of softmax_regression_main.cpp.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.