Open KokoDoko opened 2 years ago
Sorry, I'm absolute noob in javascript. I tried to track this down and to me it looks like a typo. Sometimes it's createMetadata createMetaData I think createMetaData will be correct.
It also affects the csv loading feature, so the original is somehow correct.
The examples for loading color data as JSON into a neural network is broken. This example json data is given:
When copy>pasting this example directly, the following error occurs:
Then, when putting the array in a "data" property, as follows:
The following error occurs:
Then I tried adding the "r","g","b" labels to the loading options as follows:
Now when the model starts training, I get this warning:
The training also doesn't work at all.
I can leave out the
nn.normalizeData()
, then no error is shown but nothing is learned. The debug graph just remains a flat line.The strange thing is, the following
weather.json
example DOES work. These numbers seem to be normalised already. Is this what causes the bug?