Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve ML docs/tests#14021

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
MichaeINeumann wants to merge2 commits intoTheAlgorithms:master
base:master
Choose a base branch
Loading
fromMichaeINeumann:improve-ml-tests-docs-13919

Conversation

@MichaeINeumann
Copy link

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Add or change doctests? -- Note: Please avoid changing both code and tests in a single pull request.
  • Documentation change?

Checklist:

  • I have readCONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Pythontype hints.
  • All functions havedoctests that pass the automated testing.
  • All new algorithms include at least one URL that points to Wikipedia or another similar explanation.
  • If this pull request resolves one or more open issues then the description above includes the issue number(s) with aclosing keyword: "Fixes #ISSUE-NUMBER".

Summary

  • improve k-means docstrings/type hints and add convergence doctests
  • refactor gradient descent helpers and add targeted unit tests
  • add typed linear regression docs/examples and new ML pytest module

Testing

  • .venv/bin/pre-commit run --files machine_learning/k_means_clust.py machine_learning/linear_regression.py machine_learning/gradient_descent.py machine_learning/test_machine_learning_algorithms.py
  • .venv/bin/python -m pytest machine_learning/test_machine_learning_algorithms.py

Fixes#13919

@algorithms-keeperalgorithms-keeperbot added enhancementThis PR modified some existing files awaiting reviewsThis PR is ready to be reviewed labelsDec 17, 2025
@algorithms-keeperalgorithms-keeperbot added tests are failingDo not merge until tests pass and removed tests are failingDo not merge until tests pass labelsDec 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@mindauglmindauglmindaugl approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

awaiting reviewsThis PR is ready to be reviewedenhancementThis PR modified some existing files

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Improve Test Coverage and Documentation for Machine Learning Algorithms

2 participants

@MichaeINeumann@mindaugl

[8]ページ先頭

©2009-2025 Movatter.jp