Closed PabloRoque closed 4 weeks ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
I am looking over the _plot_response_curve_fit
internals. I think it would be better to rely on the SaturationTransformation.sample_curve
method so that the solution doesn't directly call the function
method.
There needs to be a solution that works for others custom saturation transformations
I will create an issue for this. We can address in the future #1056
Can you write a test for the case that discovered this bug
Added saturation
fixture. Now test_mmm_plots
includes MichaelisMentenSaturation
.
Would fail without TensorVariable in plot_direct_contribution_curves
fixture, but does not with the fix in this PR (pending suggested changes)
SaturationTransformation.sample_curve
This will add 3 extra pm.Deterministic
to the model.
Are we happy we that behavior?
This will add 3 extra
pm.Deterministic
to the model.Are we happy we that behavior?
Lets skip if that is required. Dont think that would be good
Thanks for all the edits @PabloRoque
I am out atm but @juanitorduz will take a look
I'll review on the weekend 🙏💪 (busy week ahead 😄)
No rush! I'll be taking some time off myself until the 28th.
Make
michaelis_meten
consistent with the rest ofSaturationTransformation
by wrapping it aspt.TensorVariable
Description
Rename oldmichaelis_menten
asmichaelis_menten_function
. Made to avoid major changes inmmm.utils.estimate_menten_parameters
's L70.Wrap previousmichaelis_menten_function
aspt.TensorVariable
insidemichaelis_menten
Minor change intest_michaelis_menten
. The TensorVariable now needs to be evaluated.Minor changes to type hintsMichaelisMentenSaturation.function
withpt.as_tensor_variable
test_plotting.mock_mmm
fixture withMichaelisMentenSaturation
.eval()
in example notebookRelated Issue
Checklist
Modules affected
Type of change
📚 Documentation preview 📚: https://pymc-marketing--1054.org.readthedocs.build/en/1054/