Refactor Config files#263
Conversation
change signatures of `fit` and `predict` to take arguments that default to attributes Co-authored-by: Brad Ochocki Szasz <bochocki@mozilla.com>
Co-authored-by: Julio Cezar Moscon <jcmoscon@gmail.com>
Co-authored-by: Julio Cezar Moscon <jcmoscon@gmail.com>
|
Question for @m-d-bowerman on this one: I'm trying to clean up/document all the start dates. As part of that I added the What is the purpose of this line? Also what do you think of the general approach? |
Co-authored-by: Brad Ochocki Szasz <bochocki@mozilla.com>
In the That's the motivation behind overwriting |
Given that it gets filtered to dates in the future using |
The forecast dates get filtered that way, yeah, but the components table doesn't -- it'll have a row for every date in the observed data and the forecast dates. |
|
I'm going to leave dealing with |
bochocki
left a comment
There was a problem hiding this comment.
This looks good to me, although I'll defer to @m-d-bowerman for the approval since there are some funnel forecast changes that I'm not familiar with.
|
Created a notebook to validate that the outputs are the same. Ended up finding an error that was corrected in the latest commit, but now everything matches https://colab.research.google.com/drive/1dLeLUz_99ln9PC1AG-izZILj9-zIJHmJ#scrollTo=oukMs3d3qiEJ |
This PR modifies the config files, especially for the FunnelForecast jobs, to bring them more closely into alignment. This is a first step toward adding the ability to fit different "sub-models" to different partitions of the data (
metric_hub.segmentsset in the FunnelForecast config) to the base class.DotMap was also removed because managing the conversion for dict to DotMap and back was beginning to be more trouble than it was worth as the config files got bigger and used in more complex ways.
Checklist for reviewer:
referenced, the pull request should include the bug number in the title)
.circleci/config.yml) will cause environment variables (particularlycredentials) to be exposed in test logs
telemetry-airflow
responsibly.