Skip to content

Bump the dependencies group across 1 directory with 3 updates - #3

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/dependencies-98ecd79bdb
Open

Bump the dependencies group across 1 directory with 3 updates#3
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/dependencies-98ecd79bdb

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2025

Copy link
Copy Markdown

Updates the requirements on ndarray, ndarray-rand and linfa-datasets to permit the latest version.
Updates ndarray to 0.17.1

Changelog

Sourced from ndarray's changelog.

Version 0.17.1 (2025-11-02)

Version 0.17.1 provides a patch to fix the originally-unsound implementation of the new array reference types.

The reference types are now all unsized. Practically speaking, this has one major implication: writing functions and traits that accept RawRef and LayoutRef will now need a + ?Sized bound to work ergonomically with ArrayRef. For example, the release notes for 0.17.0 said

Reading / Writing Shape: LayoutRef<A, D>

LayoutRef lets functions view or modify shape/stride information without touching data. This replaces verbose signatures like:

fn alter_view<S>(a: &mut ArrayBase<S, Ix1>)
where S: Data<Elem = f64>;

Use AsRef / AsMut for best compatibility:

fn alter_shape<T>(a: &mut T)
where T: AsMut<LayoutRef<f64>>;

However, these functions now need an additional bound to allow for callers to pass in &ArrayRef types:

fn alter_shape<T>(a: &mut T)
where T: AsMut<LayoutRef<f64>> + ?Sized; // Added bound here

A huge thank you to Sarah Quiñones (@​sarah-quinones) for catching the original unsound bug and helping to fix it. She does truly excellent work with faer-rs; check it out!

Version 0.17.0 (2025-10-14) [YANKED]

Version 0.17.0 introduces a new array reference type — the preferred way to write functions and extension traits in ndarray.
This release is fully backwards-compatible but represents a major usability improvement.
The first section of this changelog explains the change in detail.

It also includes numerous new methods, math functions, and internal improvements — all credited below.

A New Way to Write Functions

TL;DR

ndarray 0.17.0 adds new reference types for writing functions and traits that work seamlessly with owned arrays and views.

When writing functions that accept array arguments:

  • Use &ArrayRef<A, D> to read elements from any array.
  • Use &mut ArrayRef<A, D> to modify elements.
  • Use &T where T: AsRef<LayoutRef<A, D>> to inspect shape/stride only.
  • Use &mut T where T: AsMut<LayoutRef<A, D>> to modify shape/stride only.

All existing function signatures continue to work; these new types are fully opt-in.

... (truncated)

Commits

Updates ndarray-rand to 0.16.0

Release notes

Sourced from ndarray-rand's releases.

ndarray-rand 0.16.0

This release of ndarray-rand adds compatibility for the new ArrayRef type in ndarray 0.17. It adds the the new RandomRefExt trait, providing sample_axis and sample_axis_using methods on ArrayRef.

This release also bumps the requirements for rand to 0.9.0 and for rand_distr to 0.5.0.

Changelog

Sourced from ndarray-rand's changelog.

Version 0.16.0 (2024-08-03)

Featured Changes

  • Better shape: Deprecate reshape, into_shape by @​bluss #1310 .into_shape() is now deprecated. Use .into_shape_with_order() or .to_shape() instead, which don't have into_shape's drawbacks.

New Features and Improvements

... (truncated)

Commits

Updates linfa-datasets to 0.8.0

Release notes

Sourced from linfa-datasets's releases.

Release 0.8.0

What's Changed

Besides Bernouilli naive bayes classifier and bootstrap aggregation ensemble method, most notably Linfa's 0.8.0 release brings support for ndarray 0.16.

New Contributors

(I tried to track all contributors. Please get in touch if anybody is missing, I will update the release notes accordingly)

Full Changelog: rust-ml/linfa@0.7.1...0.8.0

Changelog

Sourced from linfa-datasets's changelog.

Version 0.8.0 - 2025-09-30

New Algorithms

  • Bernouilli naive bayes in [linfa-bayes] by [@​wildart]
  • Bootstrap aggregation (aka Bagging) in new ensemble methods crate [linfa-ensemble] by [@​jk1015]

Changes

  • add max_features and tokenizer_function to CountVectorizer in linfa-preprocessing
  • add predict_proba() to Gaussian mixture model in linfa-clustering
  • add predict_proba() and predict_log_proba() to algorithms in linfa-bayes
  • add target names to dataset
  • fix SVR parameterization in linfa-svm
  • fix serde support for algorithms in linfa-pls
  • fix confusion matrix: use predicted and ground thruth labels, make it reproducible
  • fix dataset names after shuffling
  • bump ndarray to 0.16, argmin to 0.11.0, kdtree to 0.7.0, statrs to 0.18, sprs to 0.11
  • bump MSRV to 1.87.0

Version 0.7.1 - 2025-01-14

New Algorithms

  • Random Projection added to linfa-reduction by [@​GBathie]

Changes

  • add serde support to linfa-clustering
  • add accessors for classes in linfa-logistics
  • add accessors for Pca attributes in linfa-reduction
  • add wasm-bindgenfeature to use linfa in the browser
  • fix covariance update for GaussianMixtureModel in linfa-clustering
  • bump ndarray-linalg to 0.16 and argmin to 0.9.0
  • bump MSRV to 1.71.1

Version 0.7.0 - 2023-10-15

Changes

  • add array_from_gz_csv and array_from_csv in linfa-datasets
  • make Serde support in linfa-linear, linfa-logistic, and linfa-ftrl optional
  • bump argmin to 0.8.1
  • add Serde support to linfa-preprocessing and linfa-bayes
  • make licenses follow SPDX 2.1 license expression standard

Removals

  • Removed Approximate DBSCAN from linfa-clustering due to performance issues. It's now an alias to regular DBSCAN.
  • Removed partitions dependency, which breaks in current versions of Rust.

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Updates the requirements on [ndarray](https://github.com/rust-ndarray/ndarray), [ndarray-rand](https://github.com/rust-ndarray/ndarray) and [linfa-datasets](https://github.com/rust-ml/linfa) to permit the latest version.

Updates `ndarray` to 0.17.1
- [Release notes](https://github.com/rust-ndarray/ndarray/releases)
- [Changelog](https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md)
- [Commits](rust-ndarray/ndarray@0.16.1...0.17.1)

Updates `ndarray-rand` to 0.16.0
- [Release notes](https://github.com/rust-ndarray/ndarray/releases)
- [Changelog](https://github.com/rust-ndarray/ndarray/blob/master/RELEASES.md)
- [Commits](rust-ndarray/ndarray@ndarray-rand-0.15.0...ndarray-rand-0.16.0)

Updates `linfa-datasets` to 0.8.0
- [Release notes](https://github.com/rust-ml/linfa/releases)
- [Changelog](https://github.com/rust-ml/linfa/blob/master/CHANGELOG.md)
- [Commits](rust-ml/linfa@0.7.0...0.8.0)

---
updated-dependencies:
- dependency-name: ndarray
  dependency-version: 0.17.1
  dependency-type: direct:production
  dependency-group: dependencies
- dependency-name: ndarray-rand
  dependency-version: 0.16.0
  dependency-type: direct:production
  dependency-group: dependencies
- dependency-name: linfa-datasets
  dependency-version: 0.8.0
  dependency-type: direct:production
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants