Link Search Menu Expand Document

Wine

Description

The Wine dataset are the results of a chemical analysis of wines grown in the same region in Italy but derived from three different cultivars. The analysis determined the quantities of 13 constituents found in each of the three types of wines.

See more details

Neural network

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

TEST_F(WineTest, trainNeuralNetwork)
{
    StraightforwardNeuralNetwork neuralNetwork({
        Input(13),
        FullyConnected(20),
        FullyConnected(8),
        FullyConnected(3)
    });
    neuralNetwork.train(*data, 1.00_acc || 3_s);
    auto accuracy = neuralNetwork.getGlobalClusteringRate();
    ASSERT_ACCURACY(accuracy, 1.0);
}

See the code