@staticmethod
    def load(filepath):
        r = np.load(filepath)
        if isinstance(r,BaseRecommender):
            model = r
        else:
            model = np.loads(str(r['model']))
            model._load_archive(r)  # restore any fields serialized separately
        return model
Load a recommender model from file after it has been serialized with
dataset/ETHPy150Open Mendeley/mrec/mrec/base_recommender.py/BaseRecommender.load