本文整理汇总了C++中MockObjectiveFunctional::set_multilayer_perceptron_pointer方法的典型用法代码示例。如果您正苦于以下问题:C++ MockObjectiveFunctional::set_multilayer_perceptron_pointer方法的具体用法?C++ MockObjectiveFunctional::set_multilayer_perceptron_pointer怎么用?C++ MockObjectiveFunctional::set_multilayer_perceptron_pointer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MockObjectiveFunctional
的用法示例。
在下文中一共展示了MockObjectiveFunctional::set_multilayer_perceptron_pointer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: test_set_multilayer_perceptron_pointer
void TestObjectiveFunctional::test_set_multilayer_perceptron_pointer(void)
{
message += "test_set_multilayer_perceptron_pointer\n";
MockObjectiveFunctional mof;
MultilayerPerceptron mlp;
mof.set_multilayer_perceptron_pointer(&mlp);
assert_true(mof.get_multilayer_perceptron_pointer() != NULL, LOG);
}
示例2: test_load
void TestEvolutionaryAlgorithm::test_load(void)
{
message += "test_load\n";
EvolutionaryAlgorithm ea;
ea.save("../Data/EvolutionaryAlgorithm.dat");
ea.load("../Data/EvolutionaryAlgorithm.dat");
MockObjectiveFunctional mof;
ea.set_objective_functional_pointer(&mof);
ea.save("../Data/EvolutionaryAlgorithm.dat");
ea.load("../Data/EvolutionaryAlgorithm.dat");
MultilayerPerceptron mlp(1);
mof.set_multilayer_perceptron_pointer(&mlp);
ea.save("../Data/EvolutionaryAlgorithm.dat");
ea.load("../Data/EvolutionaryAlgorithm.dat");
}