当前位置: 首页>>代码示例>>C++>>正文


C++ NeuralNetwork::construct_unscaling_layer方法代码示例

本文整理汇总了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);

}
开发者ID:Grace,项目名称:OpenNN,代码行数:29,代码来源:testing_analysis_test.cpp

示例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);
}
开发者ID:Grace,项目名称:OpenNN,代码行数:29,代码来源:testing_analysis_test.cpp

示例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);
}
开发者ID:PuchoDeepLearningLabs,项目名称:OpenNN,代码行数:25,代码来源:testing_analysis_test.cpp

示例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);
}
开发者ID:jrdodson,项目名称:opennn,代码行数:11,代码来源:neural_network_test.cpp


注:本文中的NeuralNetwork::construct_unscaling_layer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。