File size: 309 Bytes
c0bef8f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import xgboost as xgb
from utils.dataprocess import create_features
import streamlit as st 

@st.cache_data
def xgboost(X, y, max_depth, learning_rate, n_estimators):
    model = xgb.XGBRegressor(n_estimators=n_estimators, learning_rate=learning_rate, max_depth=max_depth)
    model.fit(X, y)
    return model