Is it possible to set coefficient constraints for extra features? #61
-
Hi all, Does anybody else attempt to set constraints for the coefficient of extra features? For instance, I have 6 extra features here, the first one is Competitor Spend data which I expect to have a negative impact on Sales/Revenue, whereas the other 5 extra features are non-marketing activities but are expected to boost the baseline sales. In short, is there a way to set the first extra feature coefficient to be strictly lesser than 0 and the coefficients for other extra features to be strictly greater than 0? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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 example having a Normal distribution centered at -X for the first feature and the rest centered at Y. Something along the following:
|
Beta Was this translation helpful? Give feedback.
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…