当前位置:网站首页>Weights & biases (I)
Weights & biases (I)
2022-07-23 19:18:00 【Jin huaixuan】
One 、 Brief introduction
The main function
Experimental tracking : Real time visualization experiment
Super parameter tuning : Fast optimization model
data + Model version control : Version datasets and models
Model management : Manage the model lifecycle from training to production
Data visualization : Visual prediction across model versions
Collaborative reporting : Describe and share findings
Integrate :Py Torch、Keras、Hugging Face etc.
private - trusteeship :W&B Private cloud and local hosting of applications
Reference resources
- App The user interface
- Python library
- Command line interface

Two 、 Quick start
Use weights and bias experimental tracking to build better models more effectively .
Try this short Google Colab To see the weights and deviations , No need to install code !

2.1. Set up wandb
a) stay https://wandb.ai/site Sign up for a free account , Then log in to your wandb account .
b) stay Python 3 Use in the environment pip Install... On your machine wandb library
c) Log in to wandb library . Here you will find your API secret key :https://wandb.ai/authorize.
pip install wandb
wandb login2.2. Start a new run
stay Python Initialize in script or notebook W&B New operation in . wandb.init() Will start tracking system metrics and console logs , Open the box . Run your code , Enter your API secret key , You will see the new run appear in W&B in .
More about wandb.init() →【 The following guidance page 】
import wandb
wandb.init(project="my-awesome-project")2.3. Tracking indicators
Use wandb.log() Track metrics or framework integration for easy detection .
wandb.log({'accuracy': train_acc, 'loss': train_loss})
2.4. Trace superparameter
Save the super parameters , So that you can quickly compare experiments .
wandb.config.dropout = 0.2
2.5. Get alert
If your W&B Run Crashed or whether the custom trigger has been reached ( For example, your lost to Na N Or your ML The steps in the pipeline have been completed ), Through Slack Or email for notification . For complete setup , Refer to the alert documentation .
1. stay W&B Open alarm in user settings
2. take wandb.alert() Add to your code
wandb.alert(
title="Low accuracy",
text=f"Accuracy {acc} is below the acceptable threshold {thresh}"
)And then in Slack( Or your email ) View in W&B Alert message .
common problem
Where can I find my API secret key ?
Sign in www.wandb.ai after ,API The key will be on the authorization page .
How to use in an automated environment W&B?
If you are inconvenient to run shell Training models in an automated environment of commands , for example Google Of Cloud ML, You should check our environment variable configuration guide .
Do you provide local 、 Local installation ?
Yes , You can host locally and privately in your own machine or private cloud W&B, Try this quick tutorial notebook to see how . Be careful , To log in wandb Local server , You can set the host flag to the address of the local instance .
How to temporarily close wandb logging ?
If you are testing code and want to disable wandb Sync , Please set environment variable WANDB _ MODE=offline.
边栏推荐
- Understanding and simple implementation of time2vec
- 【leetcode天梯】链表 · 206 反转链表
- What is stack and the difference between stacks
- Detailed explanation: tmp1750 chip three channel linear LED driver
- 一定要执行多个请求,都要捕获错误,使用try catch 不够优雅
- Conception de l'interface UART basée sur la FPGA
- Mee | Zhejiang University Chenglei group develops a new method for designing and constructing synthetic flora
- [2013] [paper notes] terahertz band nano particle surface enhanced Raman——
- mysqldump导出内容如何不带 comment ?
- How can win11 add 3D effects to pictures? Win11 method of adding picture 3D effect
猜你喜欢
![[2020] [paper notes] Based on Rydberg atom——](/img/5c/186cae4e47a236ae4062d15f839196.png)
[2020] [paper notes] Based on Rydberg atom——

UPC 2022 summer personal training game 12 (number of combinations b)

The first layer of OSI model: physical layer, the cornerstone of existence!

人脸识别系统技术方案

FPGA实现IIC协议(二)之IIC总线的FPGA实现(单次读写驱动)

Technical scheme of face recognition system

Detailed explanation: tmp1750 chip three channel linear LED driver

界面设计四大原则

What is the difference between preamplifier and power amplifier?

数据链路层 -------- 以太网 和 ARP
随机推荐
Labyrinth DP integration
UPC 2022 summer personal training game 12 (number of combinations b)
[2018] [paper notes] graphene FET and [1] - Types and principles of gfets, characteristics of gfets, applications and principles of gfets in terahertz
C语言小项目 -- 通讯录(静态版+动态版+文件版)
Error "failed to fetch" XXX "temporary failure resolvingw: some index files failed to download" solution
FPGA flash reading and writing based on SPI
An SQL question about grouping query
ZigBee integrated development environment IAR installation
Tcl脚本语言基础(2)
11. Basic concepts of neural network
LM393 low power dual voltage comparator parameters, pins, application details
PHP file lock lottery to prevent concurrency
正则化不同导致的tuple错误
还在用Xshell?你out了,推荐一个更现代的终端连接工具
多线程&高并发(全网最新:面试题+导图+笔记)面试手稳心不慌
AE 教程,如何在 After Effects 中对 Illustrator 分图层文档进行动画绘制?
ZigBee集成开发环境IAR安装
Technical scheme of face recognition system
FPGA实现IIC协议(二)之IIC总线的FPGA实现(单次读写驱动)
[shutter -- layout] flexible layout (flex and expanded)