This commit is contained in:
Kubrik 2024-05-21 10:00:33 +02:00
parent 42bb0f7901
commit b7576c633f

View file

@ -63,12 +63,13 @@ plasm_ant_features = ['CA_plasm_pre', 'CA.G_plasm_pre', 'CA.S_plasm_pre', 'To
'VA.GG_plasm_post', 'VA.S_post', 'VA.GS_plasm_post', 'VA.SS_plasm_post',
'Total.VA_plasm_post']
def model_trainig_multipleTarget(X_train, X_test, X_val, y_train, y_test, y_val):
def model_trainig_multipleTarget(X_train, X_test, X_val, y_train, y_test, y_val, xgb = True, rf = True):
print(" ----------------- STARTING XGB ----------------- ")
start = time.time()
if
xgb_model = XGBfit(X_train, X_test, X_val, y_train, y_test, y_val)
rf_model = RFfit(X_train, X_test, X_val, y_train, y_test, y_val)