Skip to content

Masked backtest #613

Merged
merged 11 commits into from
Mar 24, 2022
Merged

Masked backtest #613

merged 11 commits into from
Mar 24, 2022

Conversation

alex-hse-repository
Copy link
Collaborator

@alex-hse-repository alex-hse-repository commented Mar 21, 2022

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Before submitting (must do checklist)

  • Did you read the contribution guide?
  • Did you update the docs? We use Numpy format for all the methods and classes.
  • Did you write any new necessary tests?
  • Did you update the CHANGELOG?

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Proposed Changes

Related Issue

Closing issues

closes #563

@alex-hse-repository alex-hse-repository added the enhancement New feature or request label Mar 21, 2022
@alex-hse-repository alex-hse-repository self-assigned this Mar 21, 2022
@codecov-commenter
Copy link

codecov-commenter commented Mar 21, 2022

Codecov Report

Merging #613 (20a7fc3) into master (f734ec0) will increase coverage by 0.05%.
The diff coverage is 90.78%.

@@            Coverage Diff             @@
##           master     #613      +/-   ##
==========================================
+ Coverage   84.54%   84.60%   +0.05%     
==========================================
  Files         118      118              
  Lines        5973     6033      +60     
==========================================
+ Hits         5050     5104      +54     
- Misses        923      929       +6     
Impacted Files Coverage Δ
etna/pipeline/base.py 94.42% <90.66%> (-1.42%) ⬇️
etna/pipeline/__init__.py 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

etna/pipeline/base.py Outdated Show resolved Hide resolved
etna/pipeline/base.py Outdated Show resolved Hide resolved
etna/pipeline/base.py Outdated Show resolved Hide resolved
etna/pipeline/base.py Outdated Show resolved Hide resolved
etna/pipeline/base.py Outdated Show resolved Hide resolved
@pytest.mark.parametrize(
"lag,expected", ((4, {"segment_0": 0, "segment_1": 0}), (7, {"segment_0": 0, "segment_1": 0.5}))
)
def test_backtest_right_timestamps(masked_ts: TSDataset, lag: int, expected: Dict[str, List[float]]):
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the difference with previous test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have no guess) The only difference in the parameters here

Copy link
Contributor

Choose a reason for hiding this comment

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

May be we should change the name of this task somehow.
For example, previous will be test_backtest_one_point, the second test_backtest_two_points.
Or we should just ask the creator of this tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I renamed the tests

iKintosh
iKintosh previously approved these changes Mar 22, 2022
etna/pipeline/base.py Show resolved Hide resolved
@alex-hse-repository alex-hse-repository enabled auto-merge (squash) March 24, 2022 05:14
@alex-hse-repository alex-hse-repository merged commit 85becfe into master Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add masked backtest
4 participants