|
mlpack
|
#include <mlpack/core.hpp>#include <mlpack/core/util/mlpack_main.hpp>#include <mlpack/methods/perceptron/perceptron_main.cpp>#include "test_helper.hpp"#include "../catch.hpp"#include "../test_catch_tools.hpp"
Classes | |
| struct | PerceptronTestFixture |
Macros | |
| #define | BINDING_TYPE BINDING_TYPE_TEST |
Functions | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronOutputDimensionTest", "[PerceptronMainTest][BindingTests]") | |
| Ensure that we get desired dimensions when both training data and labels are passed. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronLabelsLessDimensionTest", "[PerceptronMainTest][BindingTests]") | |
| Check that last row of input file is used as labels when labels are not passed specifically and results are same from both label and labeless models. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronOutputPredictionsCheck", "[PerceptronMainTest][BindingTests]") | |
| This test can be removed in mlpack 4.0.0. More... | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronModelReuseTest", "[PerceptronMainTest][BindingTests]") | |
| Ensure that saved model can be used again. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronMaxItrTest", "[PerceptronMainTest][BindingTests]") | |
| Ensure that max_iterations is always non-negative. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronReTrainWithWrongClasses", "[PerceptronMainTest][BindingTests]") | |
| Ensuring that re-training of an existing model with different of classes is checked. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronWrongDimOfTestData", "[PerceptronMainTest][BindingTests]") | |
| Checking for dimensionality of the test data set. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronWrongResponseSizeTest", "[PerceptronMainTest][BindingTests]") | |
| Ensuring that the response size is checked. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronNoResponsesTest", "[PerceptronMainTest][BindingTests]") | |
| Ensuring that absence of responses is checked. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronNoTrainingDataTest", "[PerceptronMainTest][BindingTests]") | |
| Ensuring that absence of training data is checked. | |
| TEST_CASE_METHOD (PerceptronTestFixture, "PerceptronWrongDimOfTestData2", "[PerceptronMainTest][BindingTests]") | |
| Ensuring that test data dimensionality is checked when model is loaded. | |
Test mlpackMain() of perceptron_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 | ( | PerceptronTestFixture | , |
| "PerceptronOutputPredictionsCheck" | , | ||
| "" | [PerceptronMainTest][BindingTests] | ||
| ) |
This test can be removed in mlpack 4.0.0.
This tests that the output and predictions outputs are the same.
1.8.13