Mercurial > hg > chime-home-dataset-annotation-and-baseline-evaluation-code
view gmm_baseline_experiments/custompickler.py @ 4:39258b875228
Disable sampling when estimating GMMs -- use entire set of training samples.
author | peterf |
---|---|
date | Tue, 21 Jul 2015 14:16:58 +0100 |
parents | cb535b80218a |
children |
line wrap: on
line source
# # custompickler.py: # Save objects in compressed format # # Author: Peter Foster # (c) 2015 Peter Foster # import cPickle as pickle import gzip PROTOCOL = 2 def pickle_save(Object, path): F = gzip.open(path, 'wb') pickle.dump(Object,F,PROTOCOL) F.close() def pickle_load(path): F = gzip.open(path, 'rb') Object = pickle.load(F) F.close() return Object