Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Baturin committed Nov 5, 2024
1 parent 3a48d1a commit 17b2199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etna/transforms/encoders/mean_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _count_per_segment_cumstats(target: np.ndarray, categories: np.ndarray) -> T
cumsum = np.cumsum(np.where(valid, t, 0))
cumcount = np.cumsum(valid).astype(np.float32)

Check warning on line 185 in etna/transforms/encoders/mean_encoder.py

View check run for this annotation

Codecov / codecov/patch

etna/transforms/encoders/mean_encoder.py#L184-L185

Added lines #L184 - L185 were not covered by tests

# Shift statistics by 1 to get statistics not including currect index
# Shift statistics by 1 to get statistics not including current index
cumsum = np.roll(cumsum, 1)
cumcount = np.roll(cumcount, 1)

Check warning on line 189 in etna/transforms/encoders/mean_encoder.py

View check run for this annotation

Codecov / codecov/patch

etna/transforms/encoders/mean_encoder.py#L188-L189

Added lines #L188 - L189 were not covered by tests

Expand Down

0 comments on commit 17b2199

Please sign in to comment.