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

Consider a .multiplyExistingScoreBy(5) for ML tuning #52

Closed
erikrose opened this issue Dec 20, 2016 · 2 comments
Closed

Consider a .multiplyExistingScoreBy(5) for ML tuning #52

erikrose opened this issue Dec 20, 2016 · 2 comments
Milestone

Comments

@erikrose
Copy link
Contributor

Obviously, that name is ridiculously unwieldy, but the need stands. We'll want to scale the emitted score of a rule by a constant, automatically, while training (and perhaps in the final, tuned ruleset). Right now, this could be done by interposing a type, but it will probably prove pragmatic to let us do it more concisely. We could either add this complication to the runtime or let the compilation pass interpose a made-up type implicitly.

@erikrose erikrose added this to the 2.x milestone Dec 20, 2016
@erikrose
Copy link
Contributor Author

erikrose commented Feb 24, 2017

weight and andScore are name contenders.

@erikrose
Copy link
Contributor Author

erikrose commented Mar 3, 2017

We don't need it! By using a JS-native optimization algorithm like https://github.com/iaroslav-ai/optimization-js, we can basically just wrap a for loop around the ruleset and use native JS variables to add coefficients wherever we want them. Sometimes it's nice to be embedded in a host language. :-)

@erikrose erikrose closed this as completed Mar 3, 2017
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

1 participant