JAX in 100 Seconds
Skills:
ML Maths Basics80%
Key Takeaways
The video introduces JAX, a Python library for scientific computing and linear algebra, similar to NumPy, but designed to run on accelerators like GPUs and TPUs, with features like automatic differentiation and just-in-time compilation.
Full Transcript
Jax it's just another accelerated linear algebra library but capable of mega fast numerical Computing on futuristic new hardware to understand Jax let's start with the x or accelerated linear algebra in Python there's already a great linear algebra Library called numpy and Jax is nearly identical to numpy it allows you to create multi-dimensional arrays then do scientific Computing with them like add them together or get the dot product however Jax enforces some constraints that numpy does not have like immutable arrays and pure functions which allows it to automatically compile to low-level code that can run on accelerated Hardware like gpus and tpus the a stands for autograd Jax was developed by Google along with team members from the original autograd Library you see virtually every facet of machine learning requires some calculus you'll need to compute gradients for optimization algorithms and back propagation and neural networks and autograd allows you to automatically differentiate python functions or in simple terms it calculate the rate of change of a function based on its inputs then finally the J stands for just in time compilation when you write a function in Jax it's transformed into a primitive set of operations these so-called Jack spers are lazily compiled and can be evaluated like a mini functional programming language to get started install Jacks either for your CPU GPU or TPU and now we can start doing high performance array Computing let's first create a couple of two-dimensional arrays now in numpy if I wanted to change the values in an array I could mutate the data structure directly but in Jax that's an error because arrays are immutable instead we use the at function to select an index then set to change the value and return a new array from there we can do some linear algebra like element wise addition element wise multiplication or get the dot product of the two arrays what's really cool about Jack though is automatic differentiation imagine you're building a high yield nuclear warhead in your mom's basement you'll likely write a python function that looks like this that calculates the height of the mushroom cloud based on the amount of time after detonation this will give us the height at any point in time but we also want to know the instantaneous rate of change or how fast the cloud is growing at a given point in time with Jax we can differentiate this function by passing our function to Jack's grad which returns a new function that computes the derivative but if we modify this function to take an array of parameters the end result will be a gradient which is an array of partial derivatives giving us the rate of change with respect to each input variable on the original function because grad returns a function we can even apply it to its own output to differentiate again and get higher order derivatives but more importantly you can use math just like this in Jax to build the future of machine learning gradients tell us how to adjust model parameters to decrease the loss or improve the performance of a model and you can start building deep neural networks with it right now using libraries like flax this has been Jax in 100 seconds but if you truly want to Master machine learning you'll also need to understand computer science calculus and statistics you can start making that happen today for free thanks to this video sponsor brilliant not only does their platform have a massive collection of content related to these topics but their fun fun Hands-On exercises will help you actually retain what you study just like this video every lesson is designed to be concise and rewarding making complex topics in math and science approachable for everyone you can try out everything brilliant has to offer for free for 30 days by visiting brilliant.org fireship or scan this QR code for 20% off their premium annual subscription thanks for watching and I will see you in the next one
Original Description
Try Brilliant free for 30 days https://brilliant.org/fireship You’ll also get 20% off an annual premium subscription
JAX is a Python library similar to NumPy for scientific computing and linear algebra, but designed to run on accelerators like Cuda-based GPUs and Google's TPUs.
#programming #math #100SecondsOfCode
💬 Chat with Me on Discord
https://discord.gg/fireship
🔗 Resources
Google JAX on GitHub https://github.com/google/jax
Tensorflow in 100 Seconds https://youtu.be/i8NETqtGHms
Cuda in 100 Seconds https://youtu.be/pPStdjuYzSI
GPU vs TPU https://youtu.be/r5NQecwZs1A
🔥 Get More Content - Upgrade to PRO
Upgrade at https://fireship.io/pro
Use code YT25 for 25% off PRO access
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- JAX basics tutorial
- How does JAX work?
- JAXPpython explained quickly
- Pytorch alternative
- Tensorflow vs JAX
- How is calculus used on Machine Learning
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Fireship · Fireship · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Angular 4 Development and Production Environments with Firebase
Fireship
OAuth with Angular and Firebase Tutorial
Fireship
Anonymous Authentication with Angular and Firebase - Lazy Registration
Fireship
Angular Router Guards for Firebase Users
Fireship
Angular Firebase CRUD App with NoSQL Database Tutorial
Fireship
Upload Files from Angular to Firebase Storage
Fireship
How to Deploy an Angular App to Firebase Hosting
Fireship
Sharing Data between Components in Angular
Fireship
Loading Spinners for Asynchronous Firebase Data
Fireship
Angular 4 Transactional Email with Google Firebase Cloud Functions
Fireship
Firebase Database Rules Tutorial
Fireship
Autocomplete Search with Angular4 and Firebase
Fireship
Reddit Inspired Upvoting System with Angular and Firebase NoSQL
Fireship
Angular Drag-and-Drop File Uploads to Firebase Storage
Fireship
Text Translation with Firebase Cloud Functions onWrite and Angular 4
Fireship
Custom Usernames with Firebase Authentication
Fireship
Twitter-Inspired Follow Unfollow Feature with Firebase and Angular 4
Fireship
Simple Pagination with Firebase and Angular 4
Fireship
How to Connect Firebase Users to their Data - 3 Methods
Fireship
Add Toast Message Notifications to your Angular App
Fireship
Facebook-Inspired Reactions System with Angular and Firebase
Fireship
Learn NgModule in Angular with Examples
Fireship
Lazy Loading Components in Angular 4
Fireship
Stripe Checkout Payments with Angular and Firebase - Part 1
Fireship
Process Stripe Payments with Firebase Cloud Functions - Part 2
Fireship
Selling Digital Content in Angular with Stripe Payments - Part 3
Fireship
Angular 4 Full Text Search with Algolia - Part 1
Fireship
Algolia with Firebase Cloud Functions - Part 2
Fireship
Firebase Phone Authentication in Angular 4
Fireship
Top 7 RxJS Concepts for Angular Developers
Fireship
Learn Angular Animations with 5 Examples
Fireship
Advanced Firebase Data Filtering (Multi-Property)
Fireship
Realtime Maps with Mapbox + Firebase + Angular
Fireship
Angular Reactive Forms with Firebase Database Backend
Fireship
Send Push Notifications in Angular with Firebase Cloud Messaging
Fireship
Top 7 Ways to Debug Angular 4 Apps
Fireship
Infinite Scroll with Angular and Firebase
Fireship
Use TypeScript with Firebase Cloud Functions
Fireship
Realtime Graphs and Charts with Plotly and Firebase
Fireship
Role-Based User Permissions in Firebase
Fireship
User Presence System in Realtime - Online, Offline, Away
Fireship
Location-based Queries with GeoFire and Angular Google Maps
Fireship
Angular ngrx Redux Quick Start Tutorial
Fireship
Angular Ngrx Effects with Firebase Database
Fireship
Progressive Web Apps with Angular
Fireship
Angular Ngrx with Firebase Google OAuth User Authentication
Fireship
RxJS Quick Start with Practical Examples
Fireship
Send SMS Text Messages with Twilio and Firebase
Fireship
Firebase Database Performance Profiling
Fireship
Native Desktop Apps with Angular and Electron
Fireship
Subscription Payments with Stripe, Angular, and Firebase
Fireship
Firestore with AngularFire5 Quick Start Tutorial
Fireship
Angular HTTP Client Quick Start Tutorial
Fireship
Google Sign-In with Firestore Custom User Data
Fireship
Star Review System from Scratch with Firestore + Angular
Fireship
Angular Chatbot with Dialogflow (API.ai)
Fireship
Learn @ngrx/entity and Feature Modules
Fireship
Infinite Scroll Pagination with Firestore
Fireship
Faster Firestore via Data Aggregation
Fireship
Contentful - CMS for Angular Progressive Web Apps
Fireship
More on: ML Maths Basics
View skill →Related Reads
📰
📰
📰
📰
Introduction Data Science and Machine Learning
Medium · Data Science
AgriScore: An Explainable AI Credit Scoring System for Smallholder Farmers
Medium · Machine Learning
AgriScore: An Explainable AI Credit Scoring System for Smallholder Farmers
Medium · Data Science
The Sophistication Trap: Why the Smarter AI Technique Keeps Losing
Medium · Machine Learning
🎓
Tutor Explanation
DeepCamp AI