Skip to content

[ML-52574] Add a new predict function for generating prediction table with covariates #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: branch-0.2.20.8
Choose a base branch
from

Conversation

Lanz-db
Copy link

@Lanz-db Lanz-db commented Apr 25, 2025

This PR adds a new predict function, predict_with_full_df_returned, to support prediction table with covariates for prophet.


test_df.rename(columns={self._time_col: "ds"}, inplace=True)
predict_df = self.model().predict(test_df)
return predict_df

Choose a reason for hiding this comment

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

Is this the only difference from def predict above?

  1. why do we need other field? Can we concatenate them with predict_df['yhat'] outside of the call?
  2. this function looks almost identical from the one above. can we refactor if answer to (1) is justified.

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.

2 participants