Slide 1

Slide 1 text

Demystifying Machine Learning on the Web with Tensorflow.js. Shedrack Akintayo RelianceHMO @coder_blvck

Slide 2

Slide 2 text

Meet Shedrack! - Frontend Engineer.‍ - Loves music and movies. - Loves all things javascript. Shedrack Akintayo RelianceHMO @coder_blvck

Slide 3

Slide 3 text

I’m NOT a Machine Learning Engineer, I just happen to know Javascript ‍♂

Slide 4

Slide 4 text

What is Machine Learning though?

Slide 5

Slide 5 text

Open Source Festival 2020 Machine Learning Machine Learning is the ability of computers to learn by themselves from specific data called datasets without being explicitly programmed.

Slide 6

Slide 6 text

Open Source Festival 2020 Types of Machine Learning ● Supervised Learning ● Unsupervised Learning ● Reinforcement Learning

Slide 7

Slide 7 text

What is Tensorflow && Tensorflow.js

Slide 8

Slide 8 text

Photo comes here Tensorflow Tensorflow is an end to end open source machine learning platform with a comprehensive and flexible ecosystem of tools, libraries, community support and resources.

Slide 9

Slide 9 text

Open Source Festival 2020 Tensorflow.js This is an open source javascript library built on deeplearn.js(Tensor Flow) used for creating deep learning modules on the browser. With it we can create CNNs, RNNs, etc. directly on the browser and train these modules using the Client’s GPU processing power. Hence, a server GPU is not necessary to train the modules.

Slide 10

Slide 10 text

Open Source Festival 2020 TensorFlow.js Stack. ● TensorFlow.js Core: A flexible low-level API, formerly known as deeplearn.js ● TensorFlow.js Layers: A high-level API which implements functionality similar to keras ● TensorFlow.js Data: A simple API to load and prepare data ● TensorFlow.js Converter: tools to import a TensorFlow SavedModel to TensorFlow.js

Slide 11

Slide 11 text

Overview of Tensorflow.js APIs ⛩

Slide 12

Slide 12 text

Tensorflow.js is powered by WebGL and it offers high-level layers API for defining models, and a low-level API for linear Algebra and automatic differentiation. TensorFlow.js also supports importing TensorFlow SavedModels and Keras Models

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Platforms that support Tensorflow.js

Slide 15

Slide 15 text

Open Source Festival 2020 Browser React Native (coming soon) NodeJS

Slide 16

Slide 16 text

Why Tensorflow.js though? ‍♂

Slide 17

Slide 17 text

Why Tensorflow.js ● You can import an existing, pre-trained model for inference. ● You can retrain an imported model ● You can author models directly in the browser ● Write once, run everywhere. ● No drivers or installs ● Easy to Visualize and interact with data

Slide 18

Slide 18 text

Important Terms used in TensorFlow.js

Slide 19

Slide 19 text

Terms ● Tensor: This is the central unit of values in Tensorflow, it consists of a set of values shaped into an array of one or more dimensions ● Models: A set of functions that looks for a relationship between features and labels of data ● Epoch: An epoch is the entire processing or iteration by the learning algorithm of the entire data-set. ● Learning rate: is a configurable hyperparameter used in the training of neural networks that has a small positive value, often in the range between 0.0 and 1.0.

Slide 20

Slide 20 text

Pretrained Models in TensorFlow.js

Slide 21

Slide 21 text

Pretrained Models These are machine learning models that have already been written in tensorflow. It is also a saved network that was previously trained on a large dataset, typically on a large-scale image-classification task. They are trained to either deal with data in form of audio, image or text. The have very easy to use APIs, you just have to install or link them from their respective CDNS to use them

Slide 22

Slide 22 text

Some Pretrained Models available in Tensorflow.js ● Object Classification ● Body Segmentation ● Image classification ● Speech Command Recognition ● Sentence Encoding.

Slide 23

Slide 23 text

Limitations of Tensorflow.js ● Needs a large amount of data(unless using pre-trained models) ● Training on the web is slow. It takes a lot of time ● Bias and Ethics ● Speech Command Recognition ● Sentence Encoding.

Slide 24

Slide 24 text

Useful links && Resources

Slide 25

Slide 25 text

Demo Links for Tensorflow.js ● Game Demo by Ashinze Ekene ● TensorFlow.js website ● Pretrained Models ● Deep Learning with javascript book ● Tensorflow.js Demos

Slide 26

Slide 26 text

Learning Resources and References ● Machine Learning Course from stanford ● Machine Learning Crash Course by Google ● Machine Learning for frontend developers by Charlie Gerard ● Machine Learning Magic for your Javascript Application ● Machine Learning for frontend developer by Charlie Gerard| JS Heroes 2019 ● Machine Learning on the browser with Tensorflow.js by Ashinze Ekene[slides] ● A Gentle Introduction to Tensorflow.js

Slide 27

Slide 27 text

Thank you! Shedrack Akintayo RelianceHMO @coder_blvck

Slide 28

Slide 28 text

No content