Instrumenting W&B in your code
Key Takeaways
The video demonstrates how to install and integrate the Weights & Biases (W&B) Python client into a training script, and how to refactor the code to create a run, gather configurations, and pass them to wandb.init(), and use wandb.log() to store and visualize metrics.
Full Transcript
to get started the first thing we need to do is install the python client wand B we can do so by calling pip install wand B after you've created an account you can log in locally by calling wandbead.login in python or calling 1B login from a terminal you can then follow the link to get your API key and paste it in the Box shown this is the same code as in our previous video where we're using print to log our metrics and our config values are hard coded this is that same training script but slightly refactored to use weights devices to tell weights and biases that we'd like to begin to capture details of the code we're running we want to tell it to create a run a run is how weights and biases organizes the details of every time that you run your code to create a run we just call wand B dot init we've also refactored this code to gather all of our configs at the top of the script and then pass that to 1b.init we're also referencing that same config whenever we're using those values throughout our script here is that same script but refactored even further so that rather than printing our epochs and our loss thread training we're passing it to wand b.log in a dictionary this is where we put metrics from our run like the model training or validation loss and we can call this many times when running the script and weights and biases will store and visualize the history of each of the different metrics as we log them once we've done all this we're a long way towards having reproducible experiments in the next video I'll run this script and I'll show you how we can get insights from the weights and biases workspace
Original Description
In this lesson, Scott demonstrates how to install and integrate the W&B Python client into your training script.
The lesson shows how to refactor your code to create a run, gather configurations, and pass them to *wandb.init()*. Instead of printing metrics, we use *wandb.log()* to store and visualize the history of each metric throughout the training process.
This integration takes you one step closer to achieving reproducible experiments.
You can access the code of the lesson here: https://github.com/wandb/edu/tree/main/wandb101
Get your free W&B101 and more certificates here: https://www.wandb.courses/collections
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Weights & Biases · Weights & Biases · 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
0. What is machine learning?
Weights & Biases
1. Build Your First Machine Learning Model
Weights & Biases
Intro to ML: Course Overview
Weights & Biases
2. Multi-Layer Perceptrons
Weights & Biases
3. Convolutional Neural Networks
Weights & Biases
Weights & Biases at OpenAI
Weights & Biases
Why Experiment Tracking is Crucial to OpenAI
Weights & Biases
4. Autoencoders
Weights & Biases
5. Sentiment Analysis
Weights & Biases
6. Recurrent Neural Networks [RNNs]
Weights & Biases
7. Text Generation using LSTMs and GRUs
Weights & Biases
8. Text Classification Using Convolutional Neural Networks
Weights & Biases
9. Hybrid LSTMs [Long Short-Term Memory]
Weights & Biases
Toyota Research Institute on Experiment Tracking with Weights & Biases
Weights & Biases
Weights and Biases - Developer Tools for Deep Learning
Weights & Biases
Introducing Weights & Biases
Weights & Biases
10. Seq2Seq Models
Weights & Biases
11. Transfer Learning for Domain-Specific Image Classification with Small Datasets
Weights & Biases
12. One-shot learning for teaching neural networks to classify objects never seen before
Weights & Biases
13. Speech Recognition with Convolutional Neural Networks in Keras/TensorFlow
Weights & Biases
14. Data Augmentation | Keras
Weights & Biases
15. Batch Size and Learning Rate in CNNs
Weights & Biases
Applied Deep Learning Fellowship Overview and Project Selection with Josh Tobin (2019)
Weights & Biases
Grading Rubric for AI Applications with Sergey Karayev (2019)
Weights & Biases
16. Video Frame Prediction using CNNs and LSTMs (2019)
Weights & Biases
Image to LaTeX - Applied Deep Learning Fellowship (2019)
Weights & Biases
17. Build and Deploy an Emotion Classifier (2019)
Weights & Biases
Applied Deep Learning - Data Management with Josh Tobin (2019)
Weights & Biases
Snorkel: Programming Training Data with Paroma Varma of Stanford University (2019)
Weights & Biases
Applied Deep Learning - Troubleshooting and Debugging with Josh Tobin (2019)
Weights & Biases
Troubleshooting and Iterating ML Models with Lee Redden (2019)
Weights & Biases
Designing a Machine Learning Project with Neal Khosla (2019)
Weights & Biases
Lukas Beiwald on ML Tools and Experiment Management (2019)
Weights & Biases
Building Machine Learning Teams with Josh Tobin (2019)
Weights & Biases
Pieter Abeel on Potential Deep Learning Research Directions (2019)
Weights & Biases
Testing and Deployment of Deep Learning Models with Josh Tobin (2019)
Weights & Biases
Five Lessons for Team-Oriented Research with Peter Welder (2019)
Weights & Biases
Applied Deep Learning - Rosanne Liu on AI Research (2019)
Weights & Biases
Making the Mid-career Leap from Urban Design to Deep Learning/Data Science
Weights & Biases
Organizing ML projects — W&B walkthrough (2020)
Weights & Biases
Brandon Rohrer — Machine Learning in Production for Robots
Weights & Biases
Nicolas Koumchatzky — Machine Learning in Production for Self-Driving Cars
Weights & Biases
My experiments with Reinforcement Learning with Jariullah Safi
Weights & Biases
Applications of Machine Learning to COVID-19 Research with Isaac Godfried
Weights & Biases
Testing Machine Learning Models with Eric Schles
Weights & Biases
How Linear Algebra is not like Algebra with Charles Frye
Weights & Biases
Predicting Protein Structures using Deep Learning with Jonathan King
Weights & Biases
Rachael Tatman — Conversational AI and Linguistics
Weights & Biases
Reformer by Han Lee
Weights & Biases
Sequence Models with Pujaa Rajan
Weights & Biases
GitHub Actions & Machine Learning Workflows with Hamel Husain
Weights & Biases
Look Mom, No Indices! Vector Calculus with the Fréchet Derivative by Charles Frye
Weights & Biases
Jack Clark — Building Trustworthy AI Systems
Weights & Biases
Surprising Utility of Surprise: Why ML Uses Negative Log Probabilities - Charles Frye
Weights & Biases
Track your machine learning experiments locally, with W&B Local - Chris Van Pelt
Weights & Biases
Antipatterns in open source research code with Jariullah Safi
Weights & Biases
Attention for time series forecasting & COVID predictions - Isaac Godfried
Weights & Biases
Made with ML - Goku Mohandas
Weights & Biases
Angela & Danielle — Designing ML Models for Millions of Consumer Robots
Weights & Biases
Deep Learning Salon by Weights & Biases
Weights & Biases
More on: Data Literacy
View skill →Related Reads
📰
📰
📰
📰
Du Navigateur à la Base de Données : Le Chemin le Plus Court pour les Tableaux Web
Dev.to · circobit
The Future of Experimentation: Predictive, Ethical and Autonomous
Medium · Data Science
Handling Invalid Values in the Salary Column
Medium · Data Science
The one, simple mathematical rule underpinning your life.
Medium · Data Science
🎓
Tutor Explanation
DeepCamp AI