本文整理汇总了C++中NeuralNetwork::construct_unscaling_layer方法的典型用法代码示例。如果您正苦于以下问题:C++ NeuralNetwork::construct_unscaling_layer方法的具体用法?C++ NeuralNetwork::construct_unscaling_layer怎么用?C++ NeuralNetwork::construct_unscaling_layer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NeuralNetwork
的用法示例。
在下文中一共展示了NeuralNetwork::construct_unscaling_layer方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: test_calculate_error_data
void TestingAnalysisTest::test_calculate_error_data(void)
{
message += "test_calculate_error_data\n";
NeuralNetwork nn;
DataSet ds;
TestingAnalysis ta(&nn, &ds);
Vector< Matrix<double> > error_data;
// Test
nn.set(1, 1);
nn.construct_unscaling_layer();
nn.initialize_parameters(0.0);
ds.set(1, 1, 1);
ds.initialize_data(0.0);
ds.get_instances_pointer()->set_testing();
error_data = ta.calculate_error_data();
assert_true(error_data.size() == 1, LOG);
assert_true(error_data[0].get_rows_number() == 1, LOG);
assert_true(error_data[0].get_columns_number() == 3, LOG);
assert_true(error_data[0] == 0.0, LOG);
}
示例2: test_calculate_error_data_statistics
void TestingAnalysisTest::test_calculate_error_data_statistics(void)
{
message += "test_calculate_error_data_statistics\n";
NeuralNetwork nn;
DataSet ds;
TestingAnalysis ta(&nn, &ds);
Vector< Vector< Statistics<double> > > error_data_statistics;
// Test
nn.set(1, 1);
nn.construct_unscaling_layer();
nn.initialize_parameters(0.0);
ds.set(1, 1, 1);
ds.get_instances_pointer()->set_testing();
ds.initialize_data(0.0);
error_data_statistics = ta.calculate_error_data_statistics();
assert_true(error_data_statistics.size() == 1, LOG);
assert_true(error_data_statistics[0].size() == 3, LOG);
assert_true(error_data_statistics[0][0].minimum == 0.0, LOG);
assert_true(error_data_statistics[0][0].maximum == 0.0, LOG);
assert_true(error_data_statistics[0][0].mean == 0.0, LOG);
assert_true(error_data_statistics[0][0].standard_deviation == 0.0, LOG);
}
示例3: test_calculate_error_data_histograms
void TestingAnalysisTest::test_calculate_error_data_histograms(void)
{
message += "test_calculate_error_data_histograms\n";
NeuralNetwork nn;
DataSet ds;
TestingAnalysis ta(&nn, &ds);
Vector< Histogram<double> > error_data_histograms;
// Test
nn.set(1, 1);
nn.construct_unscaling_layer();
nn.initialize_parameters(0.0);
ds.set(1, 1, 3);
ds.get_instances_pointer()->set_testing();
ds.initialize_data(0.0);
error_data_histograms = ta.calculate_error_data_histograms();
assert_true(error_data_histograms.size() == 1, LOG);
assert_true(error_data_histograms[0].get_bins_number() == 10, LOG);
}
示例4: test_get_unscaling_layer_pointer
void NeuralNetworkTest::test_get_unscaling_layer_pointer(void) {
message += "test_get_unscaling_layer_pointer\n";
NeuralNetwork nn;
nn.construct_unscaling_layer();
// Test
assert_true(nn.get_unscaling_layer_pointer() != NULL, LOG);
}