Skip to content
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

#675 add first draft for tft_explainer #1

Closed
wants to merge 8 commits into from

Conversation

Cattes
Copy link
Owner

@Cattes Cattes commented Nov 2, 2022

This is a Draft PR

Fixes #.

Summary

Other Information

super().explain(
foreground_series, foreground_past_covariates, foreground_future_covariates
)
if self._explain_results is None:
Copy link

Choose a reason for hiding this comment

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

I don't think you should cache the explainability results, they should be recomputed when explain() is called (with potentially different series)

def __init__(
self,
model: TFTModel,
background_series: Optional[Union[TimeSeries, Sequence[TimeSeries]]] = None,
Copy link

Choose a reason for hiding this comment

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

Do we need to provide these background series? If they don't play a role I'd remove.

"encoder_names": encoder_names,
"attention_heads": attention_heads,
}
self._explain_results = ExplainabilityResult({"tft": expl_res})
Copy link

Choose a reason for hiding this comment

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

The ExplainabilityResult should probably contain some TimeSeries

@Cattes
Copy link
Owner Author

Cattes commented Nov 28, 2022

This PR is deprecated. The real PR can be found in the darts repository unit8co#1392

@Cattes Cattes closed this Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants