Skip to content

Fix outliers transforms on future with gap #1147

Merged
merged 4 commits into from
Mar 3, 2023

Conversation

Mr-Geekman
Copy link
Contributor

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?

Proposed Changes

Add intersection before indexation.

Closing issues

Closes #1134.

@Mr-Geekman Mr-Geekman self-assigned this Mar 3, 2023
@github-actions
Copy link

github-actions bot commented Mar 3, 2023

@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2023

Codecov Report

❗ No coverage uploaded for pull request base (inference-v2.1@e663bed). Click here to learn what that means.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@                Coverage Diff                @@
##             inference-v2.1    #1147   +/-   ##
=================================================
  Coverage                  ?   87.00%           
=================================================
  Files                     ?      164           
  Lines                     ?     8997           
  Branches                  ?        0           
=================================================
  Hits                      ?     7828           
  Misses                    ?     1169           
  Partials                  ?        0           

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

@github-actions github-actions bot temporarily deployed to pull request March 3, 2023 08:02 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 3, 2023 08:06 Inactive
@@ -103,7 +103,9 @@ def transform(self, df: pd.DataFrame) -> pd.DataFrame:
segments = df.columns.get_level_values("segment").unique().tolist()
self._validate_segments(segments)
for segment in segments:
result_df.loc[self.outliers_timestamps[segment], pd.IndexSlice[segment, self.in_column]] = np.NaN
# to locate only present indices
index_to_check = result_df.index.intersection(self.outliers_timestamps[segment])
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be outliers_timestamps_segment or sth like this

@github-actions github-actions bot temporarily deployed to pull request March 3, 2023 13:02 Inactive
@alex-hse-repository alex-hse-repository merged commit 314d3c5 into inference-v2.1 Mar 3, 2023
This was referenced Mar 21, 2023
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants