Commit a0715f90 authored by Joaquin Torres's avatar Joaquin Torres

Trying to solve issue mean precision recall curve

parent 10eb22b0
...@@ -217,7 +217,7 @@ if __name__ == "__main__": ...@@ -217,7 +217,7 @@ if __name__ == "__main__":
# Manually loop through each fold in the cross-validation # Manually loop through each fold in the cross-validation
for fold_idx, (train_idx, test_idx) in enumerate(cv.split(X_train, y_train)): for fold_idx, (train_idx, test_idx) in enumerate(cv.split(X_train, y_train)):
X_train_fold, X_test_fold = X_train[train_idx], X_train[test_idx] X_train_fold, X_test_fold = X_train[train_idx], X_train[test_idx]
y_train_fold, y_test_fold = y_train[train_idx], y_train[test_idx] y_train_fold, y_test_fold = y_train[train_idx], y[test_idx]
# Fit the model on the training data # Fit the model on the training data
model.fit(X_train_fold, y_train_fold) model.fit(X_train_fold, y_train_fold)
# --------------------- SCORINGS --------------------------- # --------------------- SCORINGS ---------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment