Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

Fixes #137: Fix when manual parameters has no effect when response is not provided#138

Merged
Nikronic merged 4 commits intomasterfrom
fix137
Nov 27, 2023
Merged

Fixes #137: Fix when manual parameters has no effect when response is not provided#138
Nikronic merged 4 commits intomasterfrom
fix137

Conversation

@Nikronic
Copy link
Copy Markdown
Owner

Fixes #137

Summary

  • set a default negative value for "none" "base" case: "base" represents the overall negative effect of something if it does not exist. (dc44255)
  • refine other responses' importance values: this is not required, as the refinement can be done in the equation (i.e., extend_mean) (0475252)
  • refine equation: the new equation takes another value (on top of old definition) which allows proportional shifting. This allowed us to move values closer to the "base" state. I.e., the value of "base" is used as the shift. (0475252)
  • Use the "base" value as shift in all ParameterBuilder instances: Since we use an instance of ParameterBuilderBase for each manual parameter that we want to include, it is required to update all calls to extend_mean with this new shift value which is filled with the value of "base" from corresponding constants in vizard.models.estimators.manual.constant. (59cc7f3)
  • update tests: tests are updated in all previous cases. Some new cases are also added to cover the difference between "base" scenario and "none" scenario. (59cc7f3)

`"base"` represents the overall negative effect of something if it does not exist.
the new equation takes another value (on top of old definition) which allows proportional shifting. This allowed us to move values closer to the "base" state. (value of "base" is used as the shift). Thanks to this change, refinement of other responses importance values is no longer needed.
Since we use an instance of `ParameterBuilderBase` for each manual parameter that we want to include, it is required to update all calls to `extend_mean` with this new `shift` value which is filled with the value of `"base"` from corresponding constants in `vizard.models.estimators.manual.constant`. (Tests included)
@Nikronic Nikronic linked an issue Nov 27, 2023 that may be closed by this pull request
5 tasks
@Nikronic Nikronic merged commit d3cb112 into master Nov 27, 2023
@Nikronic Nikronic deleted the fix137 branch November 27, 2023 13:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix when manual parameters has no effect when response is not provided

1 participant