@classmethod
    def load(cls, path):
        model = cPickle.loads(gzip.GzipFile(path, "rb").read())
        # Deserialize Model.classifier.
        if model.classifier:
            p = path + ".tmp"
            f = open(p, "wb")
            f.write(model.classifier)
            f.close()
            model._classifier = Classifier.load(p)
            os.remove(p)
        return model
Adds data necessary for Horizon to function to the request.
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Model.load--crossover with--dataset/ETHPy150Open openstack/horizon/horizon/middleware.py/HorizonMiddleware.process_request