Skip to content

Add LinearRegression Implementation#7520

Merged
DenizAltunkapan merged 2 commits into
TheAlgorithms:masterfrom
Rosander0:add-linear-regression
Jul 19, 2026
Merged

Add LinearRegression Implementation#7520
DenizAltunkapan merged 2 commits into
TheAlgorithms:masterfrom
Rosander0:add-linear-regression

Conversation

@Rosander0

Copy link
Copy Markdown
Contributor
  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter

codecov-commenter commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.29%. Comparing base (406347c) to head (bdd6b3b).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7520      +/-   ##
============================================
+ Coverage     80.25%   80.29%   +0.03%     
- Complexity     7355     7371      +16     
============================================
  Files           810      811       +1     
  Lines         23787    23816      +29     
  Branches       4678     4681       +3     
============================================
+ Hits          19090    19122      +32     
  Misses         3939     3939              
+ Partials        758      755       -3     

☔ View full report in Codecov by Harness.
📢 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.

@Rosander0
Rosander0 force-pushed the add-linear-regression branch from d970c9e to d40506f Compare July 10, 2026 05:25
@Rosander0

Copy link
Copy Markdown
Contributor Author

Hi @DenizAltunkapan, just checking in on this PR — happy to make any changes if there's feedback, or if it needs anything from me to move forward, let me know.
Also, I'm planning a follow-up contribution once this lands: a Naive Bayes implementation (Multinomial/Bernoulli/Gaussian variants) for the same com.thealgorithms.machinelearning package this PR introduces. Does the proposed package structure here work for that, or would you prefer a different layout before I start on it? Wanted to check before building against a structure that might change.

@DenizAltunkapan DenizAltunkapan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Rosander0 thank you for your contribution

@DenizAltunkapan
DenizAltunkapan enabled auto-merge (squash) July 19, 2026 11:22
@DenizAltunkapan
DenizAltunkapan merged commit 93cf85e into TheAlgorithms:master Jul 19, 2026
7 checks passed
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