Skip to content

Don't accept clustersPerNeighborhood lower than 2 #130526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 4, 2025

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