kedro-plugins icon indicating copy to clipboard operation
kedro-plugins copied to clipboard

feat: ProphetModelDataset

Open galenseilis opened this issue 1 year ago • 6 comments

Description

This PR was created to add Meta's (formerly Facebook's) Prophet model. It is a probabilistic modelling for time series forecasting.

Development notes

The Prophet module provides functions for serializing and deserializing models to/from JSON. Beyond that the behaviour is intended to be the same as the JSONDataset. I have subclassed from JSONDataset and overrode the _load and _save methods to use Prophet's serialization during these methods.

I have tried to emulate the tests for JSONDataset, but with a code duplicate for a trained Prophet model instead of a test file.

Checklist

  • [x] Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • [ ] Updated the documentation to reflect the code changes
  • [ ] Added a description of this change in the relevant RELEASE.md file
  • [ ] Added tests to cover my changes

galenseilis avatar Jun 08 '24 02:06 galenseilis

Hi @galenseilis, thanks for the PR. I think this would be a great candidate to go in as an experimental dataset . This relaxes the requirements for tests. How does that sound?

merelcht avatar Aug 19 '24 15:08 merelcht

Hi @galenseilis, thanks for the PR. I think this would be a great candidate to go in as an experimental dataset . This relaxes the requirements for tests. How does that sound?

Sounds good to me!

galenseilis avatar Aug 19 '24 18:08 galenseilis

Great! @galenseilis are you okay moving it to the experimental directory yourself or do you want me to jump in and make the PR ready for review?

merelcht avatar Aug 20 '24 09:08 merelcht

Great! @galenseilis are you okay moving it to the experimental directory yourself or do you want me to jump in and make the PR ready for review?

Hi @merelcht , I would appreciate it if you would jump in to make the PR ready for review. My apologies for any inconvenience.

galenseilis avatar Aug 25 '24 20:08 galenseilis

@galenseilis no worries, happy to help!

merelcht avatar Aug 27 '24 10:08 merelcht

@galenseilis, I've made all changes required. I've updated the tests and docstrings. The rest are mostly docs build and linting changes. Let me know if all looks good and I'll ask the team to review 🙂

merelcht avatar Aug 27 '24 11:08 merelcht