A plotting library that create Line Rider maps
Project description
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!
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lossrider-0.0.2.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for lossrider-0.0.2-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e8cb09a903032d117afaf126c90cc00e3e0e90cd1b435f9395e61e2e41d738db |
|
| MD5 | 3add02220d3af4b8693a663b0b7a4955 |
|
| BLAKE2b-256 | b55474ea3b22553fe970250bdeda8178281757fce29089b9bb438259ec378f58 |