Research Article

[Retracted] Implementation of a Heart Disease Risk Prediction Model Using Machine Learning

Pseudocode 2

XGBoost.
import train & test_split
import XGBClassifier
xg.predict(X_test)
setting threshold if y_pred_train[i]>=0.5:
y_pred_train[i]=1
else:
y_pred_train[i]=0
import confusion_matrix
Compute confusion_matrix (y_pred, y_test)
Print Accuracy