Skip to content

Refactors ensembler, online-ensembler-forecaster and descendants#1015

Merged
fkiraly merged 4 commits intosktime:mainfrom
thayeylolu:refactor-online-ensembleForecaster
Jun 23, 2021
Merged

Refactors ensembler, online-ensembler-forecaster and descendants#1015
fkiraly merged 4 commits intosktime:mainfrom
thayeylolu:refactor-online-ensembleForecaster

Conversation

@thayeylolu
Copy link
Collaborator

Reference : #955

We need to slowly re-factor all forecasters to be compliant with the new interface (see PR #912). i.e., no overrides of fit etc and descendant classes only implementing core logic, while the BaseForecaster implements check etc logic.

Currently this is running due to various downwards compatibility workarounds, which should be removed once all forecasters are ready (in "no-override" state)

The forecasters that still need a downstream refactor are:

  • Online Ensembler Forecaster , Descendant and Ensembler

@thayeylolu thayeylolu marked this pull request as ready for review June 22, 2021 15:34
@thayeylolu thayeylolu requested a review from mloning as a code owner June 22, 2021 15:34
@fkiraly fkiraly self-requested a review June 22, 2021 15:35
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

You should also make the changes in update if the function exists.

@thayeylolu
Copy link
Collaborator Author

Could you point me to where you are referring to @fkiraly

Copy link
Contributor

@mloning mloning left a comment

Choose a reason for hiding this comment

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

Hi @thayeylolu, we also need to update the update method by removing the following I think:

        self.check_is_fitted()
        self._update_y_X(y, X)

@fkiraly
Copy link
Collaborator

fkiraly commented Jun 23, 2021

Could you point me to where you are referring to @fkiraly

the update/_update function, currently line 59.

@thayeylolu thayeylolu requested review from fkiraly and mloning June 23, 2021 12:16
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

looks ready to merge, I'll just wait for the checks to finish.

@fkiraly fkiraly merged commit 65ffd68 into sktime:main Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants