Skip to content

Instantly share code, notes, and snippets.

@cbg
cbg / add_write_speed.py
Last active November 17, 2015 22:32
Add write speed to data
import argparse
import numpy as np
def add_write_speed_to_file(filename):
if 'test' in filename:
write_score_filename = 'relevant_epoch_write_zscore_test.npbin'
else:
write_score_filename = 'relevant_epoch_write_zscore_train.npbin'
@cbg
cbg / gist:90db5d46e11245658a26
Created April 30, 2015 22:22
Polymorphic serializer
"""
In the original BSD license, both occurrences of the phrase "COPYRIGHT HOLDERS AND CONTRIBUTORS" in the disclaimer read "REGENTS AND CONTRIBUTORS".
Here is the license template:
Copyright (c) 2015, Fusionbox, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: