MACHINE LEARNING

The Beauty of

  • CTS of Infinite Red

  • React Native Core Contributor

  • Machine Learning Enthusiast

Gant Laborde

Your Friend

@GANTLABORDE

Machine Learning?

WHY

@GANTLABORDE

?

?

?

?

Machine Learning?

WHY

@GANTLABORDE

"Write once, train for anywhere"

Machine Learning?

WHY

@GANTLABORDE

Machine Learning?

WHY

@GANTLABORDE

What does it do?

Machine Learning

@GANTLABORDE

?

?

?

?

What does it do?

Machine Learning

@GANTLABORDE

  • Region Detection
  • Style Transfer

What does it do?

Machine Learning

@GANTLABORDE

😂

What does it do?

Machine Learning

@GANTLABORDE

What does it do?

Machine Learning

@GANTLABORDE

What does it do?

Machine Learning

@GANTLABORDE

What does it do?

Machine Learning

@GANTLABORDE

What

Machine Learning

@GANTLABORDE

Should

Should

it do?

What should it do?

Machine Learning

@GANTLABORDE

What should it do?

Machine Learning

@GANTLABORDE

What should it do?

Machine Learning

@GANTLABORDE

Applications

Machine Learning

@GANTLABORDE

Fraudulent Transactions

Recommendations

Best Price!?

Playing Games

Translate

Drive

How long is that line?

Write Music

AND MORE

What is it?

Machine Learning

@GANTLABORDE

What is it?

Machine Learning

@GANTLABORDE

Model   

===

function()

Model   

function()

What is it?

Machine Learning

@GANTLABORDE

DATA

IN

DATA

OUT

DATA

IN

DATA

OUT

@GANTLABORDE

From Where?

Machine Learning

3

3

PLACES

@GANTLABORDE

Download Existing  Models

From Where?

Machine Learning

#1

#1

@GANTLABORDE

Train a

Model

From Where?

Machine Learning

#2

#2

@GANTLABORDE

Modify an Existing

Model

From Where?

Machine Learning

#3

#3

Status
 

MACHINE LEARNING

@GANTLABORDE

Growth
 

MACHINE LEARNING

@GANTLABORDE

Machine Learning & JavaScript is Awesome!

  • Tensorflow (Lite/JS)

  • BrainJS (aka Brain)

  • Core ML

JavaScript Options
Today

 

MACHINE LEARNING

@GANTLABORDE

MACHINE LEARNING & JAVASCRIPT

@GANTLABORDE

  • Tensorflow

  • Tensorflow.JS

  • Tensorflow Lite

Tensorflow
 

MACHINE LEARNING

@GANTLABORDE

Tensorflow

JavaScript

@GANTLABORDE

  • Works with mobile (kinda)
    • Large model files
    • Slow on mobile devices

Tensorflow Lite

JavaScript

@GANTLABORDE

  • Optimized for Mobile
    • GPU optimized

Tensorflow Lite

React Native

@GANTLABORDE

Executive Summary:

Decent but limited.  It's a nice start, and with proper backing, it could become a Machine Learning standard library.

DEMO

Tensorflow JS

WEB ONLY

@GANTLABORDE

  • Optimized for Dynamic
    • Can be trained in JS
    • Supports most TF functions

Tensorflow JS

WEB

MACHINE LEARNING

@GANTLABORDE

Tensorflow (Lite/JS)

Machine Learning

@GANTLABORDE

Learn More:

Free course on GitHub by Magnus Erik Hvass Pedersen

https://github.com/Hvass-Labs/TensorFlow-Tutorials​

GitHub Photo

Tensorflow (Lite/JS)

Machine Learning

@GANTLABORDE

MACHINE LEARNING & JAVASCRIPT

@GANTLABORDE

Brain JS

Brain JS

React Native

@GANTLABORDE

Executive Summary:

Your ALL-JS solution.  Optimized and synced between GPU and CPU for indepth training.  GPU is around the corner, and conv is too, in Brain 2.0

DEMO

Brain JS

React Native

@GANTLABORDE

Learn More:

Free course by core-contributor

https://scrimba.com/playlist/pVZJQfg

Robert Plummer

MACHINE LEARNING & JAVASCRIPT

@GANTLABORDE

Core ML

Core ML

React Native

@GANTLABORDE

  • iOS Specific Models
    • Optimized for iOS devices
    • Has many APIs available
  • Existing support
    • react-native-coreml-image
    • react-native-coreml

Core ML

React Native

@GANTLABORDE

react-native-vision

DEMO

5GB of images => 80MB model

Core ML

React Native

@GANTLABORDE

Executive Summary:

REALTIME MODELS on your phone!?

This is epic!  But the advantage is how you can run advanced models.  Like generators.

Core ML

React Native

@GANTLABORDE

Style Transfer Generators!

How

MACHINE LEARNING

@GANTLABORDE

How does one make a model?

MACHINE LEARNING

@GANTLABORDE

How

MACHINE LEARNING

@GANTLABORDE

You don’t need to come up with advanced algorithms anymore. You just have to teach a computer to come up with its own advanced algorithm.

How

MACHINE LEARNING

@GANTLABORDE

Example Case

How

MACHINE LEARNING

@GANTLABORDE

What's the hard part?

DATA

  • Scrape the internet for pictures of Nic Cage
  • Scrape the internet for pictures of Celebs
  • Code to remove faces of all images (​faceOff)
  • Manually check your data for errors

How

MACHINE LEARNING

@GANTLABORDE

Nic or Nickelback

How

MACHINE LEARNING

@GANTLABORDE

Feed Teacher

and let it train!

How

MACHINE LEARNING

@GANTLABORDE

5+ Hours of This

How

MACHINE LEARNING

@GANTLABORDE

How

MACHINE LEARNING

@GANTLABORDE

😢

How

MACHINE LEARNING

@GANTLABORDE

How

MACHINE LEARNING

@GANTLABORDE

Transfer Learning!

How

MACHINE LEARNING

@GANTLABORDE

🎉

How

MACHINE LEARNING

@GANTLABORDE

OMG IT WORKS!?

GET ACTIVE
 

MACHINE LEARNING

@GANTLABORDE

Think in ML

@GANTLABORDE

What does it do?

Machine Learning

"Machine Learning does things a human can do;

trained with a lot of time and a lot of examples."

Review
 

MACHINE LEARNING

@GANTLABORDE

"Reimagining everything inspires science."

https://inspirobot.me/

Review
 

MACHINE LEARNING

@GANTLABORDE

#FML

@GANTLABORDE

INFINITE RED

THANKS

@GANTLABORDE

Thanks!!!

Machine Learning Intro!

Keep in touch:

https://infinite.red/

http://gantlaborde.com/

@GantLaborde Twitter