'Saves the classifier as a gzipped pickle file.'

def save(self, path, final=False):

    if final:
        self.finalize()
    self.test = None
    f = gzip.GzipFile(path, 'wb')
    f.write(cPickle.dumps(self, 1))
    f.close()
