-
Notifications
You must be signed in to change notification settings - Fork 36
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
Refactor config #214
Refactor config #214
Conversation
d54ee04
to
91e1a65
Compare
6e93f25
to
68f0fdf
Compare
1c8b0d4
to
f05d8ce
Compare
BREAKING CHANGE: the `worst` entry will no long be present in the datastore
0a7fe56
to
f4fb753
Compare
Hierarchical configuration in config.py provides context to options This setup prevents code duplication (functions with many arguments, various places to set defaults, docstrings...) Introducing new parameters is simplified Documentation is updated to reflect the new syntax BREAKING CHANGE: new configuration syntax
Allow for changing parameters of comparison functions
Generalized the registry pattern from profiles and comparisons to a single class
Based on lexicographical ordering
ec22659
to
1532239
Compare
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.
Wow, a lot of work went into this.
I have just one comment about the usage of kwargs in metrics.py. With the settings object we should probably get rid of that that, it's a bit confusing now. But it can be done at a later time afaic.
window=10, | ||
shift=1, | ||
monitoring_rules=None, | ||
pull_rules=None, | ||
features=None, | ||
**kwargs, |
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.
Hey Simon, just one comment.
We should probably take away the kwargs argument here.
This can also be fixed later, but right now it's a bit confusing.
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.
Good catch. Is addressed in the follow-up https://github.com/ing-bank/popmon/pulls/229
Preparations for v1.0.0 release
Config Refactor (breaking)
Structured config using pydantic.
config.py
provides context to optionsProfiles/Comparison Registry refactor (breaking)
The Profile and Comparison registries are extended to generalize to other existing implementations (chi2, ks, etc.)
The definitions are moved from
popmon/stats/numpy.py
topopmon/analysis/(profiles|comparisons)
Enhancements
Pipeline
andModule
Removed
Removal of unused functionality:
tree
, does not provide any additional information over what's available on githubInternal improvements / fixes
top
argument for plot_heatmap_b64 is now supportedeval
with lambda functions