But if the options object contain layers as in the example I mentioned, then model.train()returns immediately without actually training. No model is created.
The P5 version of this same example actually works, it seems that the layers options in the plain JS version is outdated. The layers options should look like this
I'm trying out the example at https://github.com/ml5js/ml5-examples/blob/development/p5js/NeuralNetwork/NeuralNetwork_multiple_layers/sketch.js
But if the options object contain
layers
as in the example I mentioned, thenmodel.train()
returns immediately without actually training. No model is created.UPDATE
The P5 version of this same example actually works, it seems that the layers options in the plain JS version is outdated. The layers options should look like this