-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sensitivity #63
base: dev
Are you sure you want to change the base?
Sensitivity #63
Conversation
Sensitivity salib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments:
self.eps, | ||
).all(), f"The difference between lb and ub is lower than the defined minimum of {self.eps}" | ||
|
||
def get_diff(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revise naming
def get_diff(self): | ||
return get_diff(self.lb.loc[:, self.VAR_VALUE], self.ub.loc[:, self.VAR_VALUE]) | ||
|
||
def get_param(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revise naming
|
||
return _dp | ||
def sanity_check(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decouple sample method and sanity check.
return full_samples | ||
|
||
|
||
class EDPSensitivity(Sensitivity): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be done more general. The above Sensitivity class does checking and sampling for a single dataframe. This class is supposed to do the same for DataFramePackages.
The implementation takes some time to grasp - could be more transparent?
# assert that the last sample equals the upper-bound datapackage | ||
assert frame_containing_nan_equal( | ||
samples["sample_" + str(n - 1)], edp_ub_stacked.data["component"] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a check that actually compares results files.
Allows to create new EnergyDatapackages from two existing EnergyDatapackages and a sampling function. First implemented sampling functions