in blog_train_algos.py [0:0]
def model_fn(model_dir): path = pathlib.Path(model_dir) predictor = Predictor.deserialize(path) return predictor