Don't understand the generate_and_preprocess_model_data
function
#227
-
Hi all, I don't think I understand what the First, the function gets two inputs X and y, but the example provided in the docstring never uses those. Instead, in the example new data is generated and stored in fields self.X and self.y. Inside Second, data is not preprocessed in the example, only generated. My suggestion would be to split this function into a Kind regards, Stijn |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @AuguB, I'll keep this issue as a reminder for me to fix the docstring |
Beta Was this translation helpful? Give feedback.
Hey @AuguB,
The docstring example needs to be updated, thanks for pointing it out. Good example of what it's supposed to do is https://github.com/michaelraczycki/pymc-marketing/blob/main/pymc_marketing/mmm/delayed_saturated_mmm.py. In general for some models the function can be just blank, for others it should contain necessary steps to construct coords, determine presence of optional parameters etc and then generate the final dataset. It probably will be separated into 2 functions in some minor patch later on. The docstring in this case was quite tricky to show from perspective of model_builder itself since it's a mostly abstract class that doesn't include any optional input parameters a…