Coding Challenge #106: XOR Problem with TensorFlow.js
In this coding challenge, I visualize the outputs of a neural network solving XOR using TensorFlow.js. Code: https://thecodingtrain.com/challenges/106-xor-problem-with-tensorflowjs
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/ueNMC_Wh6
π₯ Previous video: https://youtu.be/tIXDik5SGsI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/diGjw5tghYU?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π» TensorFlow.js: https://js.tensorflow.org/
π» ml5.js: https://ml5js.org
π» Adam optimizer: https://arxiv.org/abs/1412.6980
Videos:
π TensorFlow.js playlist: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6YIeVA3dNxbR9PYj4wV31oQ
π ES6 Arrow Function: https://www.youtube.com/watch?v=mrYMzpbFz18
π TensorFlow.js: Layers API: https://youtu.be/F4WWukTWoXY
π async/await: https://youtu.be/XO77Fib9tSI
π΄ Coding Train Live 144: https://youtu.be/_wC4sn5qKQw?t=1885s
Related Coding Challenges:
π #92 XOR Problem: https://youtu.be/188B6k_F9jU
π #104 Linear Regression with TensorFlow.js: https://youtu.be/dLp10CFIvxI
π #105 Polynomial Regression with TensorFlow.js: https://youtu.be/tIXDik5SGsI
Timestamps:
0:00 Introduction
3:43 Architecture of model
8:02 InputShape, units, and activation function
11:46 Optimizer and loss function
13:50 tf.train.sgd()
17:23 model.predict()
23:34 Input data
29:00 Train the model
36:54 Shuffle training dta
38:02 Memory management
40:08 Draw output
45:32 Train()
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://thecodingtrain.com/discord
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#machinelearning #xorproblem #p5js #javascript #tensorflowjs