Skip to content
项目

关于

绘图工具,可生成 Line Rider 地图,让你看到一个人乘着雪橇沿损失曲线滑下。🎿

其他项目

这些数字如何统计

实测星标增长

24小时
0
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Loss Rider

Finally, a Python plotting library that can (only) output Line Rider maps!



ML practitioners can experience gradient descent like never before!



With support for all important features of a line graph.



And don't forget interactive plotting in Jupyter Notebooks!



The above plots all use data from the Unit-Scaled Maximal Update Parameterization paper which proposes a more usable version of μP.

Installation

pip install lossrider

Usage

import pandas as pd
from lossrider import lossrider

# Load a csv that contains columns named "Validation Loss", "Run Count" and "model_type"
data = pd.read_csv("./_data/sweep_df.csv")

# Plot it!
lossrider(
    data,
    x="Run Count", 
    y="Validation Loss",
    hue="model_type",
    xlim=(0.6, 340),
    ylim=(3.2, 3.8),
    xticks=(1, 10, 100), 
    yticks=[x/10 for x in range(32, 39)],
    width=1000, height=500, fontsize=30,
    logx=True, grid=False,
    legend=True, legend_loc=(.65, 1),
    outfile='maps/sweep_strategies',
)

The above produces the below plot

lossridergif_sweep

Related Work

The team at wandb claim to have had this idea already.

Ge. et al. have definitely already published in this area. We note the unique contributions of our work are:

  • successfully scaling beyond toy datasets such as MNIST, using models with up to 1B parameters
  • evaluation on a variety of down-stream tasks
  • cool gifs?

探索相关项目

加载中…