Skip to content

Is it possible to set coefficient constraints for extra features? #61

Answered by pabloduque0
saukang asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @saukang ! Thanks for your question!

The way of restricting the values of a parameter would be through the distribution of the pior. For example if you want only positive values you could use a HalfNormal distribution.

Unfortunately at the moment we do not allow for multiple distributions for the extra features (that be one that restricts for positive and another for negative values). You can have different values for the same distribution but not different distributions. However this is something we are likely to add in upcoming versions.

However a workaround in the meantime will be setting different values of the prior for each extra feature (with the same distribution). For examp…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@saukang
Comment options

@pabloduque0
Comment options

@saukang
Comment options

Answer selected by saukang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants