Research Article
[Retracted] Implementation of a Heart Disease Risk Prediction Model Using Machine Learning
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 |
|