This PR resolves #772 to parse model components that are a formulae LazyVariable instance. These instances happen when a user calls a formulae stateful transformation function. In Bambi, there are really "two" function you can call on model terms:
A formulae stateful transformation, i.e. basis splines, polynomial
Function call from the environment, i.e. log transformation using numpy
I have added tests to the interpret module to reflect the two different types of function calls. I only added the tests for bmb.interpert.predictions since comparisons and slopes call the same function get_model_covariates where the bug was happening. So testing predictions implicitly tests the other two functions.
This PR resolves #772 to parse model components that are a formulae
LazyVariable
instance. These instances happen when a user calls a formulae stateful transformation function. In Bambi, there are really "two" function you can call on model terms:I have added tests to the interpret module to reflect the two different types of function calls. I only added the tests for
bmb.interpert.predictions
since comparisons and slopes call the same functionget_model_covariates
where the bug was happening. So testing predictions implicitly tests the other two functions.