Giter Club home page Giter Club logo

wandbinhood's Introduction

Wandbinhood

Simple plotting the gamblers, ml researchers, and unix ricers

Simple interface to push to a csv file, and another simple interface to do live updates on that single file

It's < 100 lines of code, go wild!

Example Image

Example Usage

To run the example plot:

git clone https://github.com/spikedoanz/wandbinhood/
cd wandbinhood
python3 -m venv venv
soource venv/bin/activate
pip install -r requirements.txt
flask run

To make your own plots with live updates, then also do:

from wandbinhood import create_project, append project

project_name = 'example'
create_project(project_name, ['loss', 'accuracy'])

epochs = 100
for epoch in epochs:
    ### Training code ###
    # loss = something
    # accuracy = something else
    apppend_project(project_name, [loss, accuracy])

Or to run the example training job with live updates

pip install -r requirements_training.txt
python example_project.py

Then, in a different terminal

flask run

And of course, you can visualize any arbitrary csvs. By editing app.py

PATH_TO_LOGS="./path_to_csv_folder/"
PROJECT_NAME="csv_file_name"
flask run

The flask server at 5000 will then plot your results in real time

How it works

Basically, these two functions post to projects/project_name.csv

create_project(project_name, [fields,that,you,want,to,track])
append_project(project_name, [numbers,for,those,fields])

The flaak server reads from projects/project_name.csv, and makes a plot for each column in that csv

Notes

This is not meant to be a complete project, this is just something I hacked together for a different project

How it works:

  1. do a training run
  2. push whatever numbers you want to a csv
  3. flask run in the background 3.1 watch the csv 3.2 every column gets its own plot

Some cool features I could add but am lazy

  • Candlestick plots
  • Guides for working with cloud training
  • Different color schemes (catppuccin), and an easy switcher in config file

wandbinhood's People

Contributors

spikedoanz avatar

Stargazers

ABDELRAHMAN HABIB avatar Tony Kabilan Okeke avatar Reza Rezvan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.