Comparing devam007:master...TheAlgorithms:master · devam007/Python · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: devam007/Python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: TheAlgorithms/Python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 4 files changed
  • 4 contributors

Commits on Oct 20, 2026

  1. fix(machine_learning): call features.any() in linear_discriminant_ana…

    …lysis (TheAlgorithms#15606)
    
    In linear_discriminant_analysis, line 146 wrote if features.any: instead of calling if features.any():. Because the method object is always truthy, the else branch handling empty datasets was unreachable dead code, triggering ty warning[redundant-condition].
    
    Call eatures.any() (matching line 107 in principal_component_analysis) and add a test case in test_linear_discriminant_analysis verifying that an empty dataset properly enters the else branch.
    
    Validation:
    - uvx ty check machine_learning/dimensionality_reduction.py -> All checks passed (0 diagnostics)
    - uvx --with scipy --with scikit-learn --with numpy pytest machine_learning/dimensionality_reduction.py --doctest-modules -> 9 passed
    - uvx ruff check / format -> clean
    hardikkaurani authored Oct 20, 2026
    Configuration menu
    Copy the full SHA
    f7109c5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e03a48 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2026

  1. [pre-commit.ci] pre-commit autoupdate (TheAlgorithms#15686)

    updates:
    - [github.com/tox-dev/pyproject-fmt: v2.30.1 → v2.30.3](tox-dev/pyproject-fmt@v2.30.1...v2.30.3)
    - [github.com/astral-sh/ruff-pre-commit: v0.16.10 → v0.17.3](astral-sh/ruff-pre-commit@v0.16.10...v0.17.3)
    - [github.com/rvben/rumdl-pre-commit: v0.2.78 → v0.3.2](rvben/rumdl-pre-commit@v0.2.78...v0.3.2)
    - [github.com/astral-sh/uv-pre-commit: 0.12.23 → 0.13.6](astral-sh/uv-pre-commit@0.12.23...0.13.6)
    - [github.com/abravalheri/validate-pyproject: 0.26 → v0.27](abravalheri/validate-pyproject@0.26...v0.27)
    
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    pre-commit-ci[bot] authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    574d100 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2026

  1. Configuration menu
    Copy the full SHA
    30507bb View commit details
    Browse the repository at this point in the history
Loading