Merged
Conversation
ecomodeller
reviewed
Apr 23, 2024
ecomodeller
reviewed
Apr 23, 2024
Member
Collaborator
Author
|
What a pro. I'm amazed. As for the parameters, I guess we can just reference MIke EVA manual https://manuals.mikepoweredbydhi.help//2024/General/EVA_UserGuide.pdf |
Collaborator
Author
|
@ecomodeller don't forget about the peasants |
Collaborator
Author
|
all comments addressed |
ecomodeller
approved these changes
May 8, 2024
Member
ecomodeller
left a comment
There was a problem hiding this comment.
Peak ratio is a very specific metric and I will assume that users of this metric are aware of the details.
| df_filter["Maximum"] = df_filter.max(axis=1) | ||
| df_filter.sort_values(by="Maximum", ascending=False, inplace=True) | ||
| # Finally we do the selection of the N- largest peaks from either model or measured | ||
| df_filter = df_filter.iloc[0:top_n_peaks, :] |
Member
There was a problem hiding this comment.
top_n_peaks has to be integer for this to work. This is not always the case.
| inter_event_level: float = 0.7, | ||
| AAP: int = 2, | ||
| inter_event_time="36h", | ||
| AAP: Union[int, float] = 2, |
Member
There was a problem hiding this comment.
Does it make sense to use integer?
Suggested change
| AAP: Union[int, float] = 2, | |
| AAP: float = 2.0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Hi.
After a long discussion we decided to update the peak selection in the Peak Ratio.
Small change but has some implications in the results. Also the number of times the user gets a NaN (no joint events) is much lower now (still can happen with very short time series with no evident peaks).
I had to obviously update the tests results of PR as the expected values now change.
Aligns with what was done here:
https://github.com/DHI/potpy/pull/39