PreferredAI / cornac

A Comparative Framework for Multimodal Recommender Systems
https://cornac.preferred.ai
Apache License 2.0
845 stars 138 forks source link

Fix Pytest error in test cases due to Numpy 2.0 incompatibility #627

Closed darrylong closed 1 week ago

darrylong commented 1 week ago

Description

In our unit tests, pytest throws failures due to incompatibility of the np.Inf being deprecated (A deprecation in Numpy 2.0).

We pin the version of numpy<2.0.0, and scipy<=1.13.1. In a separate issue and PR, we will resolve codes regarding Numpy 2.0 errors.

Related Issues

Checklist:

tqtg commented 1 week ago

Let's also set an upper bound for Numpy and Scipy version in setup.py.

tqtg commented 1 week ago

LGTM.