Home

Awesome

Casper

some random functions/classes which serve a utilitarian purpose in multiple projects PS: Hierarchy of Classes will change as I add more utilities

Requirements

Installing

git clone https://github.com/chahuja/pycasper.git
cd pycasper
python setup.py install

ProtoTyping

Name (When finding unique names becomes a bigger task than the task itself)

BookKeeper

Results

Visualize results stored by BookKeeper. I would recommend using jupyter lab / notebook to see all the results in a pretty format

import pandas as pd
from from pycasper.results import walkthroughResults
df, df_all = walkthroughResults('save/', args_subset=['exp', 'cpk', 'model', 'window_hop'],
                  res_subset=['train', 'dev', 'test'], val_key='dev')
print(df.sort_values(by='dev'))

PS: Ideally, it would work best if you use BookKeeper to store the results. But, if you store results in a json format, with 'train', 'test', 'dev' as dictionary keys storing lists of loss/metrics across number of epochs and args for the experiment as a python Dictionary, this function would work.

Results filename: <name>_res.json
Args filename: <name>_args.args
Both of them are json files