LinearTrend() error if run without arguments
Opened this issue · 2 comments
wesleyboelrijk commented
We noticed that if we run the a model with a LinearTrend without any arguments it errors with an unclear error message: " unsupported operand type(s) for +: 'NoneType' and 'int' "
pim-hoeven commented
@MBrouns @wesleyboelrijk I'll work on this one if I can replicate the issue
pim-hoeven commented
The culprit is that n_changepoints
defaults to None
, which gives us trouble down the line. My first idea would be to just replace it with 0, because it also makes sense from a model view, right?