本セッションでは、W&B Coursesの中でも最も人気の高いコースである"Effective MLOps: Model Development (日本語字幕版コース名: 効果的なMLOps: モデル開発)"をギュッと濃縮したダイジェスト版を日本語ハンズオンでお届けいたします。W&Bの基本的な使い方、ベースラインからの改良方法などをシンプルな画像のセグメンテーションタスクを通じて学ぶことができます。
https://wandb.connpass.com/event/295345/
Yuya YamamotoI'm a materials chemist, DataScientist and Kaggle Master à DataRobot
15. W&B アーティファクト
● 軽量なデータセットとモデルの
バージョン管理機能
● パイプラインの各ステップを保
存
● モデルのトラッキングとモデル
のリネージ追跡
● 手軽な監視可能性(オブザーバ
ビリティ)
● データアクセス制御
# Log an artifact
artifact = wandb.Artifact('mnist',
type='dataset')
artifact.add_dir('mnist/')
wandb.log_artifact(artifact)
# Use artifact in your pipeline
artifact = run.use_artifact(mnist:v1')
artifact_dir = artifact.download()
16. W&B 実験管理
● モデル訓練の記録システム
● 全実験の視覚化と比較
● 以前のモデルのチェックポイン
トを素早く見つけて再実行
● 計算リソースの監視する
● リアルタイムでパフォーマンスを
デバッグ
# Integrate with any Python script
import wandb
# 1. Start a W&B run
wandb.init(project=’gpt3’)
# 2. Save model inputs and hyperparams
config = wandb.config
config.learning_rate = 0.01
# Model training here
# 3. Log metrics over time to visualize
performance
wandb.log({“loss”: loss})