Link Search Menu Expand Document

Daily min temperatures

Description

The Daily min temperatures dataset describes the minimum daily temperatures over 10 years (1981-1990) in the city Melbourne, Australia. The units are in degrees Celsius and there are 3650 observations. The source of the data is credited as the Australian Bureau of Meteorology.

See more details

Neural network

This is the test with the neural network architecture used to obtain up to 1.42 mean absolute error on this dataset. To reach this accuracy you may need more attempts and more learning time.

TEST_F(DailyMinTemperaturesTest, trainNeuralNetwork)
{
   StraightforwardNeuralNetwork neuralNetwork({
        Input(1),
        Recurrence(10),
        FullyConnected(1, activation::identity)
    });
    neuralNetwork.optimizer.learningRate = 0.004f;
    neuralNetwork.optimizer.momentum = 0.2f;
    neuralNetwork.train(*data, 7_s || 2.0_mae);
    auto mae = neuralNetwork.getMeanAbsoluteError();
    ASSERT_MAE(mae, 2.0);
}

See the code