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

Pass parameter names to param_mod to fix ZPlus and AlphaBeta negative params #47

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

chr5tphr
Copy link
Owner

@chr5tphr chr5tphr commented Oct 5, 2021

  • mod_params will now pass the parameter name as the second positional
    argument to param_mod

  • this makes parameters distinguishable, such that they can be modified
    differently

  • rules implemented using BasicHook were adapted: the param_mod
    functions now need a second positional argument

  • custom rules must be updated in the same way

  • this update fixes in the rules ZPlus and AlphaBeta, which were incorrect
    when there were negative biases, as having negative biases can in any
    case cause negative outputs

  • the rules' param_mod functions specifically handle parameters named
    'bias' differently

- `mod_params` will now pass the parameter name as the second positional
  argument to `param_mod`
- this makes parameters distinguishable, such that they can be modified
  differently
- rules implemented using BasicHook were adapted: the param_mod
  functions now need a second positional argument
- custom rules must be updated in the same way

- this update fixes in the rules ZPlus and AlphaBeta, which were
  incorrect when there were negative biases, as having negative biases
  can in any case cause negative outputs
- the rules' param_mod functions specifically handle parameters named
  'bias' differently
@chr5tphr chr5tphr merged commit ed8daec into master Oct 5, 2021
@chr5tphr chr5tphr deleted the named_param_mod branch October 5, 2021 09:24
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

Successfully merging this pull request may close these issues.

None yet

1 participant