Fireship · @fireship

TensorFlow.js Quick Start

Uploaded April 3, 2018 · Length 11:17

TensorFlow.js Quick Start

Summary

This video teaches how to use TensorFlow.js to build and train machine learning models in the browser, including a linear regression example and an image recognition model.

  • tensorflow js
  • machine learning in browser
  • linear regression
  • image recognition
  • neural networks
  • javascript machine learning

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    [Music]

  2. 0:02

    the most exciting thing to happen last

  3. 0:04

    week was the announcement of tensorflow

  4. 0:06

    GS

  5. 0:07

    a javascript library that allows us to

  6. 0:09

    build train and make predictions from

  7. 0:11

    machine learning models directly in the

  8. 0:13

    browser will use tensorflow j/s with

  9. 0:16

    angular to take a hand-drawn digit image

  10. 0:18

    and then predict its actual numeric

  11. 0:20

    value I'm super excited about this

  12. 0:23

    because it opens up a whole new world of

  13. 0:24

    possibilities to combine web development

  14. 0:26

    with machine learning make sure to

  15. 0:29

    subscribe if you're new here and you can

  16. 0:30

    grab the source code from angular

  17. 0:32

    firebase com the first thing we need to

  18. 0:34

    answer is what is tensorflow and the

  19. 0:37

    simple answer is that it's a library for

  20. 0:39

    performing mathematical computations but

  21. 0:41

    it's famous for building deep neural

  22. 0:43

    networks that power some of the most

  23. 0:44

    impressive artificial intelligence

  24. 0:46

    technology that we have in the world

  25. 0:48

    today the sad part of this answer is

  26. 0:50

    that if you don't have a background in

  27. 0:52

    machine learning tensorflow is not going

  28. 0:54

    to be very easy to use or very useful to

  29. 0:56

    you that being said I started out with

  30. 0:58

    zero machine learning knowledge a couple

  31. 1:00

    years ago and it worked my way up to an

  32. 1:02

    expert rake on kaggle which is the hub

  33. 1:04

    for data science competition around the

  34. 1:06

    world if you want to get really good at

  35. 1:08

    machine learning I recommend spending

  36. 1:09

    about half your time with traditional

  37. 1:11

    courses such as Coursera or Google's

  38. 1:13

    machine learning crash course and spend

  39. 1:15

    the other half of your time applying

  40. 1:17

    what you learn in data science

  41. 1:18

    competitions on Kaggle but be careful

  42. 1:21

    because data science competitions can be

  43. 1:23

    very very addicting if you're watching

  44. 1:25

    this video with zero machine learning

  45. 1:27

    background I still want to give you a

  46. 1:28

    high-level overview of how machine

  47. 1:30

    learning models work the typical

  48. 1:32

    narrative goes something like this we

  49. 1:34

    have a set of data and each item in that

  50. 1:36

    data set has a label telling us what it

  51. 1:38

    is in this video we're using a data set

  52. 1:41

    called M nest which is a series of

  53. 1:42

    images of hand drawn digits because

  54. 1:46

    you're most likely a human being it's

  55. 1:47

    easy for you to recognize what these

  56. 1:49

    digits are but to a computer each image

  57. 1:51

    just looks like a matrix of values and

  58. 1:54

    it has no way to discern the context or

  59. 1:56

    actual meaning of the image itself a

  60. 1:58

    typical image recognition convolutional