Skip to content

Update custom_transform_and_model notebook #1216

Merged
merged 7 commits into from
Apr 11, 2023
Merged

Conversation

brsnw250
Copy link
Collaborator

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

Resolve first point from #1189

Closing issues

@brsnw250 brsnw250 self-assigned this Apr 10, 2023
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions
Copy link

github-actions bot commented Apr 10, 2023

@github-actions github-actions bot temporarily deployed to pull request April 10, 2023 12:35 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Apr 10, 2023

Codecov Report

Merging #1216 (2a1c828) into master (da0a816) will not change coverage.
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           @@
##           master    #1216   +/-   ##
=======================================
  Coverage   57.50%   57.50%           
=======================================
  Files         186      186           
  Lines       10614    10614           
=======================================
  Hits         6104     6104           
  Misses       4510     4510           

📣 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 April 10, 2023 13:06 Inactive
@brsnw250 brsnw250 changed the title updated notebook Update custom_transform_and_model notebook Apr 10, 2023
@github-actions github-actions bot temporarily deployed to pull request April 10, 2023 13:22 Inactive
@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:42:57Z
----------------------------------------------------------------

May be return_components should also be in the first bullet point as it is also accepted by all the signatures?


@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:42:58Z
----------------------------------------------------------------

May be "However, we will implement prediction decomposition as it is common component for all the models"


brsnw250 commented on 2023-04-11T07:16:33Z
----------------------------------------------------------------

I think the current variant suits better as we focus on showing how decomposition could be implemented if it is needed.

@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:42:59Z
----------------------------------------------------------------

Line #64.            df = df.loc[:, ~df.columns.duplicated()].copy()

Why do you need this line?


brsnw250 commented on 2023-04-11T07:18:44Z
----------------------------------------------------------------

To remove duplicate columns if they are presented. It seems like some columns from previous transformations are left in ts.

alex-hse-repository commented on 2023-04-11T08:38:26Z
----------------------------------------------------------------

In code of the library we don't have such logic, this problem should be solved out of the model code

@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:43:00Z
----------------------------------------------------------------

Line #65.            timestamp_column = df["timestamp"]

Columns are dropped not inplace, so it is not neccesary to save them


brsnw250 commented on 2023-04-11T08:32:08Z
----------------------------------------------------------------

Removed

@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:43:01Z
----------------------------------------------------------------

Line #74.            if return_components:

May be it is better to create a separate method for components as we de in out code


brsnw250 commented on 2023-04-11T07:23:55Z
----------------------------------------------------------------

I think the current implementation is more straightforward and easy to follow. There is no need to jump between different methods to precisely understand how forecast works.

alex-hse-repository commented on 2023-04-11T08:39:31Z
----------------------------------------------------------------

I think it makes forecast method looks too complicated

@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:43:02Z
----------------------------------------------------------------

I think we can leave only the first sentence, the other part is slightly redundant


@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:43:03Z
----------------------------------------------------------------

We can use columns_num=2 here


brsnw250 commented on 2023-04-11T08:31:26Z
----------------------------------------------------------------

Added

@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:43:04Z
----------------------------------------------------------------

Line #6.            LagTransform(in_column="target", lags=list(range(21, 100, 7)), out_column="lag"),

May be better to use less number of lag for better visualisation


brsnw250 commented on 2023-04-11T08:31:46Z
----------------------------------------------------------------

Removed some lags

@review-notebook-app
Copy link

review-notebook-app bot commented Apr 11, 2023

View / edit / reply to this conversation on ReviewNB

alex-hse-repository commented on 2023-04-11T06:43:06Z
----------------------------------------------------------------

We also need to show how to implement forecast decomposition for this case


Copy link
Collaborator Author

I think the current variant suits better as we focus on showing how decomposition could be implemented if it is needed.


View entire conversation on ReviewNB

Copy link
Collaborator Author

To remove duplicate columns if they are presented. It seems like some columns from previous transformations are left in ts.


View entire conversation on ReviewNB

Copy link
Collaborator Author

I think the current implementation is more straightforward and easy to follow. There is no need to jump between different methods to precisely understand how forecast works.


View entire conversation on ReviewNB

Copy link
Collaborator Author

Added


View entire conversation on ReviewNB

Copy link
Collaborator Author

Removed some lags


View entire conversation on ReviewNB

Copy link
Collaborator Author

Removed


View entire conversation on ReviewNB

@github-actions github-actions bot temporarily deployed to pull request April 11, 2023 08:35 Inactive
Copy link
Collaborator

In code of the library we don't have such logic, this problem should be solved out of the model code


View entire conversation on ReviewNB

Copy link
Collaborator

I think it makes forecast method too complicated


View entire conversation on ReviewNB

@github-actions github-actions bot temporarily deployed to pull request April 11, 2023 09:01 Inactive
@alex-hse-repository alex-hse-repository enabled auto-merge (squash) April 11, 2023 09:42
@github-actions github-actions bot temporarily deployed to pull request April 11, 2023 09:58 Inactive
@alex-hse-repository alex-hse-repository merged commit d8cecd8 into master Apr 11, 2023
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