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

Add satisficing score converters #89

Open
rgerkin opened this issue Dec 7, 2018 · 1 comment
Open

Add satisficing score converters #89

rgerkin opened this issue Dec 7, 2018 · 1 comment
Assignees

Comments

@rgerkin
Copy link
Contributor

rgerkin commented Dec 7, 2018

Add score conversions that have a Boolean like nature, but softer, so the optimizer can still find it's way into the "good enough" region.

@rgerkin rgerkin self-assigned this Dec 7, 2018
@rgerkin
Copy link
Contributor Author

rgerkin commented Jun 16, 2020

Something like:

from scipy.special import expit
def f(x: float, bounds: tuple, slope: tuple) -> float:
    mid = sum(bounds)/2
    if x < mid:
        s = expit((x - bounds[0])/slope[0])
    else:
        s = expit((bounds[1] - x)/slope[1])
    return s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant