On this page I am trying to get a simple custom vanilla javascript activation function working
for a sequential model without having to create an entire layer.
To customize an entire layer try
https://codepen.io/caisq/pen/jdBgwB just need to change tf.loadModel to tf.loadLayersModel
unless that has already been updated.
The Original xOr by Matt Cameron was written for NodeJS, his code is at
Code
The expected output for xOr input is
[0,0] = ~ 0
[1,0] = ~ 1
[0,1] = ~ 1
[1,1] = ~ 0
Reminder: The black textarea is updateable. Make changes and click the "Update and Run" button.
...