elastic / eland

Python Client and Toolkit for DataFrames, Big Data, Machine Learning and ETL in Elasticsearch
https://eland.readthedocs.io
Apache License 2.0
627 stars 98 forks source link

Learning to rank tests failing #675

Closed davidkyle closed 2 weeks ago

davidkyle commented 3 months ago

Several learning to rank tests are failing with the error:

Arrays are not almost equal to 2 decimals
FAILED tests/ml/test_ml_model_pytest.py::TestMLModel::test_learning_to_rank[rank:ndcg-False]
FAILED tests/ml/test_ml_model_pytest.py::TestMLModel::test_learning_to_rank[rank:map-True]
FAILED tests/ml/test_ml_model_pytest.py::TestMLModel::test_learning_to_rank[rank:map-False]
FAILED tests/ml/test_ml_model_pytest.py::TestMLModel::test_learning_to_rank[rank:pairwise-True]
FAILED tests/ml/test_ml_model_pytest.py::TestMLModel::test_learning_to_rank[rank:pairwise-False]

The first failure reproduces on my system with this command

pytest tests/ml/test_ml_model_pytest.py::TestMLModel::test_learning_to_rank[rank:ndcg-False]
davidkyle commented 2 weeks ago

Closed by #685