Machine Learning in the Browser with TensorflowJS
Ekene Ashinze
Ekene Ashinze
Web Developer @OPay
GitHub, Twitter, LinkedIn
@ashinzekene
Ekene Ashinze
Web Developer @OPay
GitHub, Twitter, LinkedIn
@ashinzekene
I’m not a Machine Learning Engineer
Machine Learning
Machine Learning
Machine learning is simply the ability of computers to learn from data without being explicitly programmed.
Types of Machine Learning?
TensorFlow?
TensorFlow is an end-to-end open source platform for machine learning with a comprehensive, flexible ecosystem of tools, libraries and community resources.
TensorFlow.js?
TensorFlow.js is an open-source hardware-accelerated JavaScript library for training and deploying machine learning models
TensorFlow.js?
TensorFlow.js Platform?
NodeJS
Browser
ReactNative
(coming soon)
Why TensorFlow.js?
Ways in using TensorFlow.js?
Terms
Tensor
The central unit of value in tensorflow. A set of values shaped into an array of one or more dimensions
Tensor
Model
A set of functions that finds a relationship between the features and labels of data
Model
Epoch
Pretrained Models
Some Pretrained models in TensorFlow JS
Object detection
Image classification
Pose detection
Speech Commands
Text classification
Mobile Net
Mobile Net
Toxicity
Toxicity
Speech Commands
Speech Commands
Demo One
Building your model
Dataset - Iris
The dataset is a CSV file which contains a set of 150 records under 5 attributes - Petal Length, Petal Width, Sepal Length, Sepal width and Class(Species)
Import and format data
Import and format data
Import and format data
Create ML model
Create ML model
Create ML model
Create ML model
Train and Predict
Demo Two
Transfer Learning
Truncate the preloaded model
Truncate the preloaded model
Truncate the preloaded model
Our model
Our model
Our model
Our model
Merge and Predict
Demo Three
Limits
Limits
Other tools
Links
Other links
Machine Learning for Front-End Developers by Charlie Gerard
Machine Learning Magic for Your JavaScript Application
TensorFlow.js Bringing Machine Learning to the Web and Beyond by Nick Kreeger & Nikhil Thorat:
Machine learning for front-end developers - Charlie Gerard | JSHeroes 2019 |
https://medium.com/tensorflow/a-gentle-introduction-to-tensorflow-js-dba2e5257702
The only limit to AI is human imagination
― Chris Duffey
Thank you