rshrott commited on
Commit
4772c07
1 Parent(s): 5f3d4b0

Create inference.py

Browse files
Files changed (1) hide show
  1. inference.py +10 -0
inference.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import catboost
2
+ from catboost import CatBoostRegressor
3
+
4
+ model = CatBoostRegressor()
5
+ model.load_model("model.cbm")
6
+
7
+ def predict(features):
8
+ # Transform features if necessary
9
+ prediction = model.predict([features])
10
+ return prediction.tolist()