Java icon indicating copy to clipboard operation
Java copied to clipboard

Implementing Linear Regression in Java and creating Machine Learning algorithms

Open tkgowtham opened this issue 1 year ago • 3 comments

I have created a Linear Regression, Machine Learning program in Java. This will work for one dependent (y) and one independent (x) variable and gets the data in Array list. The formula for linear regression is y = mx + c where m is the slope and c is the intercept. I would like to create more machine learning algorithms in Java and here starting with linear regression. Looking forward for contributing more this project.

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

tkgowtham avatar Oct 28 '24 05:10 tkgowtham

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.45%. Comparing base (03bb8ee) to head (fd339e7).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6045      +/-   ##
============================================
+ Coverage     73.42%   73.45%   +0.03%     
- Complexity     5078     5086       +8     
============================================
  Files           656      657       +1     
  Lines         17617    17641      +24     
  Branches       3394     3396       +2     
============================================
+ Hits          12936    12959      +23     
  Misses         4180     4180              
- Partials        501      502       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 28 '24 05:10 codecov-commenter

Can someone please help me with how to clang format my java code and correct the the build pull request

tkgowtham avatar Oct 28 '24 05:10 tkgowtham

Clang formatter outputs suggested formatting here https://github.com/TheAlgorithms/Java/actions/runs/11548095568/job/32138967988?pr=6045

siriak avatar Oct 29 '24 17:10 siriak

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!

github-actions[bot] avatar Dec 03 '24 00:12 github-actions[bot]

Please reopen this pull request once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution!

github-actions[bot] avatar Dec 13 '24 00:12 github-actions[bot]