-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi Jeff, I am testing your example and having to change the size of the array and getting unexpected results.
As I have not coded for 15 years it is confusing me as I have it wrong.
The networks layers:
DECLARE_UNEURAL_LAYER(input_layer, 7);
DECLARE_UNEURAL_LAYER(hidden_layer, 10);
DECLARE_UNEURAL_LAYER(output_layer, 7);
The training data:
fix16_t inputs[7] [5] = {
{F16(26/40), F16(16/40), F16(10/40), F16(20/40), F16(19/40)},
{F16(22/40), F16(26/40), F16(28/40), F16(23/40), F16(12/40)},
{F16(7/40), F16(14/40), F16(34/40), F16(34/40), F16(2/40)},
{F16(35/40), F16(1/40), F16(23/40), F16(19/40), F16(18/40)},
{F16(1/40), F16(8/40), F16(26/40), F16(24/40), F16(13/40)},
{F16(11/40), F16(3/40), F16(1/40), F16(31/40), F16(1/40)},
{F16(25/40), F16(24/40), F16(31/40), F16(10/40), F16(23/40)},
};
The expected output:
fix16_t expected_outputs[7][1] = {
{F16(29/40)},
{F16(32/40)},
{F16(17/40)},
{F16(27/40)},
{F16(9/40)},
{F16(11/40)},
{F16(12/40)},
};
And the printout:
Allocated 700 bytes of storage for the network
Successfully initialized storage
Successfully attached data
Randomizing Network Weights
Successfully created raw uNeural Network
Allocated 3200 bytes of scratch space
Initial expected/output 0 - 0.986145|0.982849
Initial expected/output 1 - 0.933624|0.982849
Initial expected/output 2 - 0.977219|0.982849
Initial expected/output 3 - 0.951111|0.982849
Initial expected/output 4 - 0.974335|0.982849
Initial expected/output 5 - 0.000000|0.982849
Initial expected/output 6 - 0.000000|0.982849
Iteration: 0
Global Error: 21.582047
RMSE: 2.322830
Actual output 0 - 0.982681
Actual output 1 - 0.982681
Actual output 2 - 0.982681
Actual output 3 - 0.982681
Actual output 4 - 0.982681
Actual output 5 - 0.982681
Actual output 6 - 0.982681
Where have I got it wrong?
Metadata
Metadata
Assignees
Labels
No labels