mlpack
Functions
init_rules_test.cpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/core/math/random.hpp>
#include <mlpack/methods/ann/layer/layer.hpp>
#include <mlpack/methods/ann/layer/layer_types.hpp>
#include <mlpack/methods/ann/ffn.hpp>
#include <mlpack/methods/ann/init_rules/kathirvalavakumar_subavathi_init.hpp>
#include <mlpack/methods/ann/init_rules/nguyen_widrow_init.hpp>
#include <mlpack/methods/ann/init_rules/oivs_init.hpp>
#include <mlpack/methods/ann/init_rules/orthogonal_init.hpp>
#include <mlpack/methods/ann/init_rules/random_init.hpp>
#include <mlpack/methods/ann/init_rules/const_init.hpp>
#include <mlpack/methods/ann/init_rules/gaussian_init.hpp>
#include <mlpack/methods/ann/init_rules/glorot_init.hpp>
#include <mlpack/methods/ann/init_rules/he_init.hpp>
#include <mlpack/methods/ann/init_rules/lecun_normal_init.hpp>
#include "catch.hpp"
Include dependency graph for init_rules_test.cpp:

Functions

 TEST_CASE ("ConstantInitTest", "[InitRulesTest]")
 Test the RandomInitialization class with a constant value.
 
 TEST_CASE ("OrthogonalInitTest", "[InitRulesTest]")
 Simple test of the OrthogonalInitialization class with two different sizes.
 
 TEST_CASE ("OrthogonalInitGainTest", "[InitRulesTest]")
 Test the OrthogonalInitialization class with a non default gain.
 
 TEST_CASE ("ConstInitTest", "[InitRulesTest]")
 Test the ConstInitialization class. More...
 
 TEST_CASE ("KathirvalavakumarSubavathiInitTest", "[InitRulesTest]")
 
 TEST_CASE ("NguyenWidrowInitTest", "[InitRulesTest]")
 Simple test of the NguyenWidrowInitialization class.
 
 TEST_CASE ("OivsInitTest", "[InitRulesTest]")
 Simple test of the OivsInitialization class with two different sizes.
 
 TEST_CASE ("GaussianInitTest", "[InitRulesTest]")
 Simple test of the GaussianInitialization class.
 
 TEST_CASE ("NetworkInitTest", "[InitRulesTest]")
 Simple test of the NetworkInitialization class, we test it with every implemented initialization rule and make sure the output is reasonable.
 
 TEST_CASE ("GlorotInitUniformTest", "[InitRulesTest]")
 Simple test of the GlorotInitialization class for uniform distribution.
 
 TEST_CASE ("GlorotInitNormalTest", "[InitRulesTest]")
 Simple test of the GlorotInitialization class for normal distribution.
 
 TEST_CASE ("HeInitTest", "[InitRulesTest]")
 Simple test of the HeInitialization class.
 
 TEST_CASE ("LecunNormalInitTest", "[InitRulesTest]")
 Simple test of the LecunNormalInitialization class.
 

Detailed Description

Author
Marcus Edel

Tests for the various weight initialize methods.

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.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "ConstInitTest"  ,
""  [InitRulesTest] 
)

Test the ConstInitialization class.

If you think about it, it's kind of ridiculous to test the const init rule. But at least we make sure it builds without any problems.