Skip to content

A helpful analysis wrapper for organizing experiments in python with standard tools like numpy and matplotlib

Notifications You must be signed in to change notification settings

CatalinVoss/analysis-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Python Analysis Wrapper

This is a lightweight tool I built for organizing experiment output in python (e.g. data analysis & general machine learning work). Particularly useful for work on a remote server to avoid log/local/ipython notebooks.

This will make a timestamped and named directory for all your figures and redirect stdout log output to a file.

Example:

import numpy as np
from analysis_wrapper import AnalysisContext as Experiment
import matplotlib.pyplot as plt

with Experiment("plot_respect") as ex:
    # Log output will get saved even if your stuff crashes
    print("Doing some work")
    fig = plt.figure()
    # Do some plotting
    ex.save_fig(fig, "My Figure")

About

A helpful analysis wrapper for organizing experiments in python with standard tools like numpy and matplotlib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages