I’m looking to build a multivariable linear model. Historically I have used the GLM to do this. Unfortunately I need to apply a positivity constraint to my feature coefficients in order to ensure the direction makes fundamental sense.
Ideally I’d look to do this by using a normal distribution for my intercept and a half t distribution of the coefficient priors. This seems not to be possible under the GLM and I’m sturggeling to hand turn it.
Would someone be able to point me in the right direction?
ValueError: Cannot compute test value: input 0 (__logp) of Op Elemwise{sub,no_inplace}(__logp, __logp) missing default value.
Backtrace when that variable is created:
I got the same issue when I tried to constrain the distribution for the priors and just assumed it wasn’t supported?
I can replicate your example and it restructures for my code successfully. As such I’m going to assume I have an issue elsewhere in my code band work backwards from this point. Thanks a real lot for your input - it’s great to know the GLM is this flexible.