forked from pymc-labs/pymc-marketing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Censored wrapper for Prior class (pymc-labs#1309)
* support for deserialization of three classes * add the deserialize logic * correct the type hint * add an example * separate out the error * catch error at deserialization * relax the input type * add test suite * add test for arbitrary serialization via Prior * use deserialize within from_json * test for deserialize support within Prior * use general deserialization in individual media transformations * test both deserialize funcs * test arb deserialization in adstock * add similar deserialization check for saturation * better naming of the tests * support parsing of hsgp kwargs * add to the module level docstring * allow VariableFactory in parse_model_config * implement the censored variable as VariableFactory * add test against VariableFactory * test the variables created with censored variable * add few more censored tests * add tests for errors * implement the censored variable as VariableFactory * add test against VariableFactory * test the variables created with censored variable * add few more censored tests * add tests for errors * add module to documentation * add to the module documentation * Reorder the top level documentation * add more docstring about the functions * serialization support for Censored class * run pre-commit * checks that lead to deterministics * switch out with pydantic.dataclasses.dataclass * handle the pytensor variable case * add setter for dims
- Loading branch information
Showing
2 changed files
with
424 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.