Fireship · @fireship
TensorFlow in 100 Seconds
Uploaded August 3, 2022 · Length 2:39
Summary
A 100-second introduction to TensorFlow, an open-source machine learning framework for deep neural networks.
- tensorflow
- machine learning
- deep learning
- neural networks
- python
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
tensorflow an open source machine
- 0:02
learning framework famous for powering
- 0:04
deep neural networks with high-level
- 0:06
code it was developed by the google
- 0:08
brain team and first released in 2015.
- 0:10
it's most commonly used with python but
- 0:12
can run in other languages like
- 0:14
javascript c plus plus and java at its
- 0:16
core it's just a library for programming
- 0:18
with linear algebra and statistics as
- 0:20
you know the word tensor describes a
- 0:22
multilinear relationship between sets of
- 0:24
algebraic objects within a vector space
- 0:26
aka a multi-dimensional array what makes
- 0:28
it special is its collection of apis for
- 0:31
data processing visualization model
- 0:33
evaluation and deployment that make deep
- 0:35
learning accessible to the average
- 0:37
developer it's extremely portable and is
- 0:39
able to run on tiny mobile cpus or
- 0:42
microcontrollers with tensorflow lite
- 0:44
can run in the browser with
- 0:45
tensorflow.js while the core library can
- 0:47
scale up to multiple gpus or run on
- 0:49
tensor processing units ships engineered
- 0:52
specifically to run tensorflow at a
- 0:54
massive scale it's used in medicine for
- 0:56
object detection and mri images by
- 0:58
twitter to sort your timeline by tweet
- 1:00
relevance by spotify to recommend music
- 1:02
by paypal for fraud detection in
- 1:04
addition to many other applications like
- 1:06
self-driving cars natural language
- 1:08
processing and so on to build your own
- 1:10
neural network right now create a python
- 1:12
file and install tensorflow next we'll
- 1:14
need some data like fashion mnist which
- 1:16
we can automatically import the goal is
- 1:18
to train a model that can predict the
- 1:19
clothing type of each image tensorflow
- 1:21
has a subclassing api for expert users
- 1:24
but also integrates with the
- 1:25
beginner-friendly keras library which
- 1:27
has a sequential api that can easily
- 1:29
build neural networks layer by layer we
- 1:31
start with a flattened layer that takes
- 1:33
the 28 by 28 pixel image as an input and
- 1:35
converts it into a one-dimensional array
- 1:37
this input layer is then fed into a
- 1:39
dense layer with 128 fully connected
- 1:42
neurons or nodes you can think of each
- 1:44
node like its own linear regression as
- 1:46
each data point flows through it it'll
- 1:47
try to guess the output and gradually
- 1:49
update a mapping of weights to determine
- 1:51
the importance of a given variable in
- 1:53
this case it uses a rectified linear
- 1:55
activation function that will output the
- 1:57
input if a certain threshold is met
- 1:59
otherwise it will just output zero and


