From d01ebf4e564a73d5ba9444d15ddf596de7aeabf9 Mon Sep 17 00:00:00 2001 From: Ramin RX7 <52785580+Ramin-RX7@users.noreply.github.com> Date: Mon, 6 Feb 2023 13:46:16 +0330 Subject: [PATCH] Removed unused `enumerate()` and `n_classifiers` --- 4-Classification/3-Classifiers-2/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/4-Classification/3-Classifiers-2/README.md b/4-Classification/3-Classifiers-2/README.md index 48cc2329..606d7f71 100644 --- a/4-Classification/3-Classifiers-2/README.md +++ b/4-Classification/3-Classifiers-2/README.md @@ -77,9 +77,7 @@ Start by creating an array of classifiers. You will add progressively to this ar 2. Train your model using the Linear SVC and print out a report: ```python - n_classifiers = len(classifiers) - - for index, (name, classifier) in enumerate(classifiers.items()): + for name, classifier in classifiers.items(): classifier.fit(X_train, np.ravel(y_train)) y_pred = classifier.predict(X_test)