Skip to content

numpy 1.26.0 does not support stacking a set of tuples #354

Closed
@gykovacs

Description

@gykovacs

Description

There are some minor incompatibility problems with numpy 1.26.0

Steps/Code to Reproduce

import numpy as np
import metric_learn as ml

print(np.__version__)

ml.ITML_Supervised().fit(np.random.random_sample(size=(100, 5)), np.random.randint(2, size=100))

Expected Results

The expected result is the code running.

Actual Results

The actual result is a numpy error:
image

Versions

Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.31
Python 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:34:09) [GCC 12.3.0]
NumPy 1.26.0
SciPy 1.11.3
Scikit-Learn 1.3.1
Metric-Learn 0.6.2


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions