Skip to content

mlx-learn 0.1.7

Choose a tag to compare

@tabulai tabulai released this 23 Nov 23:20
· 39 commits to main since this release
02bc19a

mlx-learn 0.1.7 adds exact radius-neighbor search and dense ordinary least squares for Apple Silicon.

  • NearestNeighbors.radius_neighbors and radius_neighbors_graph use a hybrid search that includes points on the radius boundary. The new RadiusNeighborsClassifier and RadiusNeighborsRegressor use the same search. See the cold and warm comparisons with scikit-learn.
  • LinearRegression supports dense, weighted and multi-output fits. The host solver handles nearly collinear designs and uses the installed scikit-learn version’s rank cutoff. Patched sparse and positive fits use scikit-learn. See the solver results and limitations.

PyPI provides Apple Silicon wheels for CPython 3.10 through 3.13 and a source distribution.

The full M4 Max performance check flagged eight kNN, logistic regression and PCA cases against stock scikit-learn. In paired measurements, 0.1.7 and 0.1.6 ran within 1.6% of each other on those eight workloads. Release benchmarks

python -m pip install --upgrade mlx-learn==0.1.7

PyPI package · Changelog