[7bf731]: / 11-Docker / helper.py

Download this file

9 lines (7 with data), 215 Bytes

1
2
3
4
5
6
7
8
import lightgbm as lgb
import pickle
# Replace 'model_path' with the actual path to your model file
# load model
with open("model.pkl", "rb") as f:
model = pickle.load(f)
print("Model loaded successfully")