Skip to content
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

Value of min_similarity attribute is overwritten in merge_models function #1639

Closed
Ceglowa opened this issue Nov 21, 2023 · 2 comments
Closed

Comments

@Ceglowa
Copy link

Ceglowa commented Nov 21, 2023

In

def merge_models(cls, models, min_similarity: float = .7, embedding_model=None):
you are able to pass the variable min_similarity, which is 0.7 by default.
However, in
min_similarity = 0.7
the value is being overwritten with 0.7 value. Immediately after the assignment, the variable is used. So that means, that the value passed in the function doesn't influence the merging process

@MaartenGr
Copy link
Owner

That is correct and indeed an issue! Fortunately, this is already fixes in the upcoming PR which I hope to release in the upcoming weeks after some additional documentation changes.

@Ceglowa
Copy link
Author

Ceglowa commented Dec 22, 2023

Hi @MaartenGr. I see that this issue is already fixed. Thanks for fixing that. Closing the ticket

@Ceglowa Ceglowa closed this as completed Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants