-
Notifications
You must be signed in to change notification settings - Fork 80
Add find_change_points
and tests for it
#521
Conversation
Codecov Report
@@ Coverage Diff @@
## master #521 +/- ##
==========================================
+ Coverage 87.99% 88.03% +0.03%
==========================================
Files 116 118 +2
Lines 5538 5556 +18
==========================================
+ Hits 4873 4891 +18
Misses 665 665
Continue to review full report at Codecov.
|
series: pd.Series, change_point_model: BaseEstimator, **model_predict_params | ||
) -> List[pd.Timestamp]: | ||
"""Find change trend points within one segment.""" | ||
signal = _prepare_signal(series=series, model=change_point_model) |
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.
Make the order of parameters consistent with the order of parameters in signature(or vice versa)
def find_change_points( | ||
ts: TSDataset, in_column: str, change_point_model: BaseEstimator, **model_predict_params | ||
) -> Dict[str, List[pd.Timestamp]]: | ||
"""Find change trend points using ruptures models. |
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.
May be "change trend points" -> "trend change points"
Returns | ||
------- | ||
result: | ||
dictionary with list of change trend points for each segment |
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.
May be "change trend points" -> "trend change points"
…> trend change points
IMPORTANT: Please do not create a Pull Request without creating an issue first.
Before submitting (must do checklist)
Type of Change
Proposed Changes
Look #485.
Related Issue
#485.
Closing issues
Closes #485.