Machine Learning, Exploratory Data Analysis.
prediction_start = time.perf_counter() preds = xgb.predict(X_test) prediction_end = time.perf_counter() acc_xgb = (preds == y_test).sum().astype(float) / len(preds)*100 xgb_train_time = training_end-training_start xgb_prediction_time = prediction_end-prediction_start print("XGBoost's prediction