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

Custom positive-negative strategy #4235

Open
pavelshutov-pr3vision opened this issue May 14, 2024 · 1 comment
Open

Custom positive-negative strategy #4235

pavelshutov-pr3vision opened this issue May 14, 2024 · 1 comment

Comments

@pavelshutov-pr3vision
Copy link

Hello everyone!

I have one question: is it possible to simply implement my own strategy for positive and negative vectors (or modify an existing best-score strategy) for another specific situation?

For example, if I understood correctly:

  • the best-score strategy has a strict condition: if an element has a maximum score with positive vectors lower than with negative ones, then the element is excluded from the results due to a low and negative score:
let score = if best_positive_score > best_negative_score {
    best_positive_score;
} else {
    -(best_negative_score * best_negative_score);
};

I'm looking for another way — instead of a hard restriction, make a softer one, for example:

let score = best_positive_score - best_negative_score;

How difficult is it to implement, maybe I can just rewrite the score function or something like that? Where can I start?

Thanks in advance. And I'm sorry if my question is too dumb

@generall
Copy link
Member

It feels like the Average vector strategy should give you something closer to what you are asking. But if not and you really see a benefit in implementing this new strategy, it is, of course, possible to implement one.

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