i have a function like:
def load_model(model_path: str) -> ???:
with open("XXX.pkl", "rb") as f:
model_pipeline = pickle.load(f)
return model_pipeline
My question is what type hint i should specify for the output? thanks.
i have a function like:
def load_model(model_path: str) -> ???:
with open("XXX.pkl", "rb") as f:
model_pipeline = pickle.load(f)
return model_pipeline
My question is what type hint i should specify for the output? thanks.
Copyright © 2021 Jogjafile Inc.