Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Jul 3, 2025

This tests are failing when clustersPerNeighborhood is equal to cero as we try to get the best cetroid using the neighbours, but the object is empty. I got a different failure if neighbour are 1 because we cannot then have SOAR assigments.

Therefore I have refactor the code a bit to prevent setting clustersPerNeighborhood < 2.

fixes #130258
fixes #130497

@iverase iverase requested review from benwtrent and john-wagster July 3, 2025 07:41
@iverase iverase added >non-issue :Search Relevance/Search Catch all for Search Relevance v9.2.0 labels Jul 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 3, 2025
@iverase iverase changed the title Don't build neighborhoods when clustersPerNeighborhood == 0 Don't accept clustersPerNeighborhood lower than 2 Jul 3, 2025
Copy link
Contributor

@john-wagster john-wagster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@iverase
Copy link
Contributor Author

iverase commented Jul 3, 2025

I am waiting on #130490 as it will affect this PR.

@iverase iverase merged commit 0c4bf22 into elastic:main Jul 4, 2025
32 checks passed
@iverase iverase deleted the fixKmeanstests branch July 4, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] HierarchicalKMeansTests testHKmeans failing [CI] KMeansLocalTests testKMeansNeighbors failing

3 participants