LightGBM
model = lgb.LGBMClassifier(learning_rate=0.09,max_depth=-5,random_state=42)
model.fit(x_train,y_train,eval_set=[(x_test,y_test),(x_train,y_train)],
verbose=20,eval_metric='logloss')
LightGBM
model = lgb.LGBMClassifier(learning_rate=0.09,max_depth=-5,random_state=42)
model.fit(x_train,y_train,eval_set=[(x_test,y_test),(x_train,y_train)],
verbose=20,eval_metric='logloss')
LightGBM
print(metrics.classification_report(y_test,model.predict(x_test)))
LightGBM
print('Training accuracy {:.4f}'.format(model.score(x_train,y_train)))
print('Testing accuracy {:.4f}'.format(model.score(x_test,y_test)))
LightGBM
lgb.plot_tree(model,figsize=(30,40))
LightGBM
lgb.plot_importance(model)
LightGBM
metrics.plot_confusion_matrix(model,x_test,y_test,cmap='Blues_r')
LightGBM
lgb.plot_metric(model)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us