Skip to content

Conversation

@Dcyaprogrammer
Copy link
Contributor

Pull Request Template

Description

The Perceptron is a fundamental binary classification algorithm that learns a linear separator between two classes. It works by iteratively adjusting weights based on misclassified training examples until all data points are correctly classified

Type of change

-✅ New feature (non-breaking change which adds functionality)

Checklist:

  • ✅ I ran bellow commands using the latest version of rust nightly.
  • ✅ I ran cargo clippy --all -- -D warnings just before my last commit and fixed any issue that was found.
  • ✅ I ran cargo fmt just before my last commit.
  • ✅ I ran cargo test just before my last commit and all tests passed.
  • ✅ I added my algorithm to the corresponding mod.rs file within its own folder, and in any parent folder(s).
  • ✅ I added my algorithm to DIRECTORY.md with the correct link.
  • ✅ I checked COUNTRIBUTING.md and my code follows its guidelines.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.06%. Comparing base (aa24550) to head (6f3a065).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1000      +/-   ##
==========================================
+ Coverage   96.03%   96.06%   +0.02%     
==========================================
  Files         370      371       +1     
  Lines       25787    25943     +156     
==========================================
+ Hits        24764    24921     +157     
+ Misses       1023     1022       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Dcyaprogrammer
Copy link
Contributor Author

Hi @siriak, would you please take a look to your convenience. I believe this is ready to be merged. Thank you!

Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@siriak siriak merged commit 4402903 into TheAlgorithms:master Jan 19, 2026
7 checks passed
@Dcyaprogrammer Dcyaprogrammer deleted the feature/perceptron branch January 20, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants