Skip to content
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

feat: initial version of backtest tool #282

Merged
merged 54 commits into from
Sep 14, 2023
Merged

feat: initial version of backtest tool #282

merged 54 commits into from
Sep 14, 2023

Conversation

ab93
Copy link
Member

@ab93 ab93 commented Sep 11, 2023

Backtesting tool currently with the capability of:

  • Running univariate analysis on Prometheus data
  • Train models
  • Generate scores
  • Save plots
  • CLI tool
  • Prometheus data client now uses Threadpool for a 60% speedup on 8 days of data

ab93 and others added 30 commits August 28, 2023 20:32
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <avik_basu@intuit.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Preprocess udf

---------
Signed-off-by: Kushal Batra <34571348+s0nicboOm@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Add PostProc

---------

Signed-off-by: s0nicboOm <i.kushalbatra@gmail.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Get config from constructor for Preproc and Postproc

Signed-off-by: s0nicboOm <i.kushalbatra@gmail.com>
Signed-off-by: Kushal Batra <34571348+s0nicboOm@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
1. Add publisher
2. Add test cases for preproc and postproc

Signed-off-by: s0nicboOm <i.kushalbatra@gmail.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: s0nicboOm <i.kushalbatra@gmail.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: s0nicboOm <i.kushalbatra@gmail.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Merging #282 (21ff828) into main (0cdc257) will decrease coverage by 0.96%.
The diff coverage is 86.73%.

@@            Coverage Diff             @@
##             main     #282      +/-   ##
==========================================
- Coverage   93.36%   92.41%   -0.96%     
==========================================
  Files          66       74       +8     
  Lines        2911     3349     +438     
  Branches      234      267      +33     
==========================================
+ Hits         2718     3095     +377     
- Misses        154      201      +47     
- Partials       39       53      +14     
Files Changed Coverage Δ
numalogic/tools/types.py 92.85% <0.00%> (ø)
numalogic/udfs/__main__.py 0.00% <0.00%> (ø)
numalogic/backtest/__init__.py 60.00% <60.00%> (ø)
numalogic/connectors/__init__.py 80.00% <75.00%> (-20.00%) ⬇️
numalogic/config/factory.py 87.67% <76.47%> (-10.25%) ⬇️
numalogic/connectors/_base.py 77.27% <77.27%> (ø)
numalogic/backtest/__main__.py 78.57% <78.57%> (ø)
numalogic/connectors/druid.py 86.36% <85.71%> (+1.74%) ⬆️
numalogic/connectors/prometheus.py 88.69% <88.69%> (ø)
numalogic/backtest/_prom.py 89.36% <89.36%> (ø)
... and 11 more

... and 1 file with indirect coverage changes

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

Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
@ab93 ab93 self-assigned this Sep 12, 2023
@ab93 ab93 added the enhancement New feature or request label Sep 12, 2023
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
@ab93 ab93 marked this pull request as ready for review September 12, 2023 23:03
@ab93 ab93 requested a review from vigith September 12, 2023 23:03
@ab93 ab93 changed the title feat: Backtest tool feat: initial version of backtest tool Sep 12, 2023
Copy link
Contributor

@s0nicboOm s0nicboOm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments

Dockerfile Outdated Show resolved Hide resolved
numalogic/connectors/prometheus.py Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
Signed-off-by: Avik Basu <ab93@users.noreply.github.com>
@ab93 ab93 merged commit a364721 into main Sep 14, 2023
10 checks passed
@ab93 ab93 deleted the backtest-tool branch September 14, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants