• Stars
    star
    139
  • Rank 261,420 (Top 6 %)
  • Language
    HTML
  • Created about 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The code for the book Learning TensorFlow.js by Gant Laborde - Published by O'Reilly Media

Source for O'Reilly's Learning TensorFlow.js Book

Learning TensorFlow.js - Powerful Machine Learning in JavaScript by Gant Laborde

book cover

About the Book

Learn how to take advantage of the TensorFlow.js framework to implement machine learning models in the client browser or server.

This book is intended for two audiences:

  • Web devs and Front end Engineers who are familiar with JavaScript but unfamiliar with how to get started in AI / ML.
  • Experienced AI specialists who are interested in how to apply their server-based skills to a framework like TensorFlow.js.

Purchase your copy of the book on Amazon: https://amzn.to/3dR3vpY

About the Code

The code in this repository is broken down by chapter. Each chapter folder has a technical domain split. Some code is repeated in each folder for each technology.

The folders in each chapter could be:

  • extra - any extra content for that chapter that is not technically specific.
  • node - A Node.js set of solutions and code for the given chapter that run as a server.
  • simple - A "inline" hosted set of HTML solutions in code for a given chapter that run in the browser. These files do not depend on a package management system for hosting. These files access their dependencies via CDNs.
  • web - A Parcel.js web hosted solution of code that runs using NPM to create a browser based solution. These projects reflect modern transpiled web technology.

Book Chapters

  • Chapter 1 AI is Magic - There is no code associated with Chapter 1 because it's an introduction to the book and concepts. I've added a small readme with some of the links mentioned in the chapter for convenience.
  • Chapter 2 Introducing TensorFlow.js - This chapter is focused on getting you running TensorFlow.js on a client or a server. Once you've got it running, you actually run a Toxicity classifier on given text.
  • Chapter 3 Introducing Tensors - This chapter helps you understand the concept and need of tensors. You then immediately use this technology to build a simple recommendation system for music.
  • Chapter 4 Image Tensors - Images in machine learning are a fantastic example of tensors and all the things you can do to modify complex data.
  • Chapter 5 Introducing Models - Learn what makes an AI tick. Machine learning models are the core of what drives machine learning. In this chapter, you implement several models.
  • Chapter 6 Advanced Models & UI - In this chapter, you implement a very advanced model that detects objects, you then do an overlay that helps illustrate the results, and you connect everything to the webcam for real-time inference.
  • Chapter 7 Model Making Resources - Now that you understand how to implement models, where do they come from? This chapter gives you a tour of conversion commands and data resources.
  • Chapter 8 Training Models - Train your first model from data. See the simplest model architecture for the simplest problem. You train directly in the browser!
  • Chapter 9 Classification Models & Data Analysis - Data isn't always clean. Learn how to build a notebook, visualize, and extract features from your data by solving who would survive the Titanic.
  • Chapter 10 Image Training - Bring in some advanced concepts for feature extraction via convolutions. Understand and learn how to build more advanced models on Node.js and implement those models in the browser.
  • Chapter 11 Transfer Learning - Learn what transfer learning is and utilize it. Transfer learn with several methods and see the benefit with small datasets.
  • Chapter 12 Dicify - Capstone Project - Utilize all the skills you've learned. Compose a dataset and train a model to create art out of dice.

More Repositories

1

ReactStateMuseum

A whirlwind tour of React state management systems by example
JavaScript
1,522
star
2

nsfw_model

Keras model of NSFW detector
Python
1,297
star
3

jail-monkey

A React Native library for identifying if a phone is rooted or mocking locations
Java
567
star
4

react-native-siren

The React Native port of the popular Siren / Harpy Pod and hopefully Gradle
JavaScript
153
star
5

drawer-example

Demonstrating the react-navigation drawer for my blog post on medium
JavaScript
124
star
6

rps_tfjs_demo

Training a Rock Paper Scissors model in the browser via TFJS - Learn along style
JavaScript
86
star
7

fun-machine-learing

The most interesting and fun machine learning links!
71
star
8

nicornot

Using machine learning to identify if someone is Nic Cage or not
JavaScript
62
star
9

tictactoe-ai-tfjs

Train your own TensorFlow.js Tic Tac Toe
JavaScript
50
star
10

enjoytheshow

Real-time facial expression gathering
JavaScript
35
star
11

mobile-commander

A collection of useful React Native commands
Shell
33
star
12

Public_Speaking_Hits

A Helpful list of quick and useful public speaking lines
31
star
13

RedAlert

iOS Alerts and ActionSheets with ease
Ruby
24
star
14

motion-egg

Awesome little gem to add an easter egg to your RubyMotion app
Ruby
23
star
15

PackingPeanut

App persistent data for RubyMotion Android
Ruby
21
star
16

RNImagePreview

Using a simple cocoapod for image previews in React Native
Objective-C
15
star
17

WaveFun

Just messing around with React Native animation
JavaScript
15
star
18

tfjs-runway

Packages tfjs models for shipping with websites
TypeScript
14
star
19

yesyoucam

BluePotion Camera Library
Ruby
11
star
20

useless-things

The abandoned storage space of things that should have never been
JavaScript
9
star
21

ReactNative_MNIST

React Native implementation of the MNIST model in BrainJS
Objective-C
9
star
22

Food101

Machine Learning with React Native to identify food
Objective-C
8
star
23

ReactNativeGraphQLExample

I said I'd make it. Here's my GraphQL React Native Example
8
star
24

GantMan

My profile readme
7
star
25

home_splash

Simple beginner's Rails project to help illustrate some basics.
Ruby
6
star
26

TensorFlow-Data-and-Deployment-Specialization

Jupyter Notebook
6
star
27

rn-textables

A react native version of Textables
JavaScript
6
star
28

ignite-source-map

A CLI to parse source-map files and stack traces into usable output
JavaScript
5
star
29

timewarp

The timewarp filter with TensorFlow.js
HTML
5
star
30

RubyMotion-Intro

Presentation of Intro to RubyMotion
Ruby
5
star
31

RN_TF_Lite

React Native Tensorflow Lite - Code and example
Objective-C
4
star
32

over-armour

Rage Against the Crash
JavaScript
4
star
33

irrigate

Yeoman generator for Infinite Red app structure
JavaScript
4
star
34

ignite-redux-logger

Ignite plugin for redux-logger
JavaScript
4
star
35

WinGif

The delights of a gif on React Native Windows
C#
4
star
36

WackAMole

Basics for teaching components, flatlist, and animation
JavaScript
4
star
37

contact_solution

Contact Solution is your refreshing prescription for RubyMotion Android contacts data.
Ruby
3
star
38

packlist-components

Components for React Museum Apps - separated for clarity
JavaScript
3
star
39

workshop-app

Basic workshop app (agenda/conf)
JavaScript
3
star
40

solidarity-envinfo

Create and enforce envInfo results with Solidarity
JavaScript
3
star
41

wrong_way

Checking for people going the wrong way - uses AI-LAB and React
JavaScript
3
star
42

quickmirrorme

A simple website that is a webcam mirror
JavaScript
3
star
43

reform

Server for Proselyte model conversions
JavaScript
2
star
44

blightcam

Detect people or vehicles on blighted property - Demo
JavaScript
2
star
45

cryptex

Fun idea with blaze pose. Might finish it, might not.
HTML
2
star
46

ML_Octave

Octave/Matlab code for Machine Learning Exercises
MATLAB
2
star
47

CoffeeBoard

Sinatra project for my Raspberry Pi
Ruby
2
star
48

Pneumonia-classifier

99% accurate pneumonia classifier
Jupyter Notebook
2
star
49

multiverse

Snapshot builds of React apps and host them in folders
JavaScript
2
star
50

HuntClue

There are two errors in this React Native app that stop it from working
Java
1
star
51

RSM-Context

Created with CodeSandbox
JavaScript
1
star
52

ai_sort

Use AI to sort you into your house
HTML
1
star
53

rm-loop-speed

Testing loop speeds in RubyMotion
Ruby
1
star
54

simple-tfjs-transfer

Mobilenet with K-nearest-neighbors classifier transfer learning example
JavaScript
1
star
55

GreenRune

Website to Generate Greenrune Glyphs
JavaScript
1
star
56

adventure-bingo

Simple adventure-bingo game.
Ruby
1
star
57

BasicAppSyncExample

Using AWS AppSync
JavaScript
1
star
58

Siraj-week3-hw

Solution to week 3 homework
Jupyter Notebook
1
star
59

HelloWorld

The good old "Hello World" application for RubyMotion
Ruby
1
star
60

JQueryUI-Days-From-Now

Add number of days from now display with any jQuery UI datepicker.
1
star
61

crawfish

Simple RN app for finding crawfish prices near you.
JavaScript
1
star
62

model-convert

yup
JavaScript
1
star
63

transfer_trek

JavaScript
1
star
64

MachineLearningTraining

Notebooks for Fun ML by Gant
Jupyter Notebook
1
star
65

socialboard

The web app for the SocialBoard.io site
Ruby
1
star
66

tts_ruby

Ruby stuff from Tech Talent South Fulltime Class
Ruby
1
star
67

riddikulus

Sort drawings into their Hogwarts house
Jupyter Notebook
1
star
68

10-20-30-Running

RubyMotion source for 10-20-30 running app
Ruby
1
star
69

RSM-graphql-appsync

Created with CodeSandbox
JavaScript
1
star
70

furry_destroyer

A flash game I made 10+ years ago, still funny
ActionScript
1
star
71

greenrune_lab

Build your own Greenrune images in this WYSIWYG
CSS
1
star
72

basics

React Native Basics
JavaScript
1
star
73

Fashion-GAN

Create Fashion GAN from FASHION-MNIST
Jupyter Notebook
1
star