Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧑‍💻: Implement Early Stopping and Confusion Matrix in SVM Implementation (Machine_Learning/SVM) #879

Closed
2 tasks done
shreyasparaj opened this issue Oct 27, 2024 · 3 comments · Fixed by #898
Closed
2 tasks done
Assignees
Labels
Contributor Denotes issues or PRs submitted by contributors to acknowledge their participation. gssoc-ext hacktoberfest level1 Status: Assigned💻 Indicates an issue has been assigned to a contributor.

Comments

@shreyasparaj
Copy link
Contributor

Title

Implement Early Stopping and Confusion Matrix in SVM Implementation

Enhancement Aim

The aim of this enhancement is to improve the SVM model's training efficiency by incorporating an early stopping mechanism to prevent overfitting, as well as to provide a detailed performance evaluation using a confusion matrix.

Changes

  1. Early Stopping Mechanism:

Added logic to stop training if the loss does not improve after a specified number of epochs (patience), reducing unnecessary computations and preventing overfitting.

  1. Confusion Matrix:
  • Integrated the confusion matrix to provide a more granular view of the model's predictions, allowing for better understanding of true positives, true negatives, false positives, and false negatives.

  • Utilized ConfusionMatrixDisplay from sklearn.metrics for visual representation.

Screenshots 📷

Screenshot (636)

Guidelines

  • I have read the guidelines
  • I have the link to my latest merged PR

Full Name

SHREYAS SHRENIK PARAJ PATIL

Participant Role

GSSOC CONTRIBUTOR

Copy link

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!

Copy link

✅ This issue has been closed. Thank you for your contribution! If you have any further questions or issues, feel free to join our community on Discord to discuss more!

1 similar comment
Copy link

✅ This issue has been closed. Thank you for your contribution! If you have any further questions or issues, feel free to join our community on Discord to discuss more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor Denotes issues or PRs submitted by contributors to acknowledge their participation. gssoc-ext hacktoberfest level1 Status: Assigned💻 Indicates an issue has been assigned to a contributor.
Projects
None yet
2 participants