import catboost | |
from catboost import CatBoostRegressor | |
model = CatBoostRegressor() | |
model.load_model("model.cbm") | |
def predict(features): | |
# Transform features if necessary | |
prediction = model.predict([features]) | |
return prediction.tolist() | |
import catboost | |
from catboost import CatBoostRegressor | |
model = CatBoostRegressor() | |
model.load_model("model.cbm") | |
def predict(features): | |
# Transform features if necessary | |
prediction = model.predict([features]) | |
return prediction.tolist() | |