|
mlpack
|
#include <string>#include <mlpack/core.hpp>#include <mlpack/core/util/mlpack_main.hpp>#include "test_helper.hpp"#include <mlpack/methods/linear_regression/linear_regression_main.cpp>#include "../test_catch_tools.hpp"#include "../catch.hpp"
Classes | |
| struct | LRTestFixture |
Macros | |
| #define | BINDING_TYPE BINDING_TYPE_TEST |
Functions | |
| void | ResetSettings () |
| TEST_CASE_METHOD (LRTestFixture, "LRDifferentLambdas", "[LinearRegressionMainTest][BindingTests]") | |
| Training a model with different regularization parameter and ensuring that predictions are different. | |
| TEST_CASE_METHOD (LRTestFixture, "LRResponsesRepresentation", "[LinearRegressionMainTest][BindingTests]") | |
| Checking two options of specifying responses (extra row in train matrix and extra parameter) and ensuring that predictions are the same. | |
| TEST_CASE_METHOD (LRTestFixture, "LRModelReload", "[LinearRegressionMainTest][BindingTests]") | |
| Check that model can saved / loaded and used. More... | |
| TEST_CASE_METHOD (LRTestFixture, "LRWrongResponseSizeTest", "[LinearRegressionMainTest][BindingTests]") | |
| Ensuring that response size is checked. | |
| TEST_CASE_METHOD (LRTestFixture, "LRWrongDimOfDataTest1t", "[LinearRegressionMainTest][BindingTests]") | |
| Ensuring that test data dimensionality is checked. | |
| TEST_CASE_METHOD (LRTestFixture, "LRWrongDimOfDataTest2", "[LinearRegressionMainTest][BindingTests]") | |
| Ensuring that test data dimensionality is checked when model is loaded. | |
| TEST_CASE_METHOD (LRTestFixture, "LRPredictionSizeCheck", "[LinearRegressionMainTest][BindingTests]") | |
| Checking that that size and dimensionality of prediction is correct. | |
| TEST_CASE_METHOD (LRTestFixture, "LRNoResponses", "[LinearRegressionMainTest][BindingTests]") | |
| Ensuring that absence of responses is checked. | |
| TEST_CASE_METHOD (LRTestFixture, "LRNoTrainingData", "[LinearRegressionMainTest][BindingTests]") | |
| Ensuring that absence of training data is checked. | |
Test mlpackMain() of linear_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.
| TEST_CASE_METHOD | ( | LRTestFixture | , |
| "LRModelReload" | , | ||
| "" | [LinearRegressionMainTest][BindingTests] | ||
| ) |
Check that model can saved / loaded and used.
Ensuring that results are the same.
1.8.13