Skip to content

Instantly share code, notes, and snippets.

View Balinus's full-sized avatar
💭
Working on ClimateTools

Philippe Roy Balinus

💭
Working on ClimateTools
View GitHub Profile
# Context manager to generate batches in the background via a process pool
# Usage:
#
# def batch(seed):
# .... # generate minibatch
# return minibatch
#
# with BatchGenCM(batch) as bg:
# minibatch = next(bg)
# .... # do something with minibatch
@Balinus
Balinus / Plot_Examples.md
Created November 22, 2016 21:07 — forked from gizmaa/Plot_Examples.md
Various Julia plotting examples using PyPlot