当我尝试在 VS Code 中调试 C++ 程序时出现以下错误:
knn_cv = KNeighborsClassifier(n_neighbors=5, p=5, weights='distance')
knn_cv.fit(X_train,y_train)
y_pred = knn_cv.predict(X_test)
knn_accuracy = knn_cv.score(X_test, y_test)
knn_f1 = f1_score(y_test, y_pred)
knn_logloss = log_loss(y_test, y_pred)
y_scores = knn_cv.predict_proba(X_test)
knn_roc_auc = roc_auc_score(y_test, y_scores[:,1])