numaproj / numalogic-prometheus

AIOps for metrics in Prometheus
Apache License 2.0
32 stars 10 forks source link

feat: config driven trainers #93

Closed nkoppisetty closed 1 year ago

nkoppisetty commented 1 year ago

Explain what this PR does.

  1. Updated main, preprocess and threshold model trainers to use config
  2. Updated postprocess to use config, and generate max/weighted unified score
codecov-commenter commented 1 year ago

Codecov Report

Merging #93 (e0c82ed) into main (cf3b80a) will decrease coverage by 0.68%. The diff coverage is 86.95%.

@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
- Coverage   90.03%   89.35%   -0.68%     
==========================================
  Files          19       19              
  Lines         933      958      +25     
  Branches       95      100       +5     
==========================================
+ Hits          840      856      +16     
- Misses         74       81       +7     
- Partials       19       21       +2     
Impacted Files Coverage Δ
numaprom/udf/postprocess.py 89.24% <65.21%> (-7.19%) :arrow_down:
numaprom/udsink/train.py 91.66% <91.17%> (-1.44%) :arrow_down:
numaprom/udsink/train_rollout.py 86.36% <97.14%> (+0.92%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more