Describe the bug
Some invalid arguments for the TailCurve class will raise an exception (although not the kind of exception we'd expect). Others will actually cause no exception when an exception should be raised. I can volunteer to take this one on.
Traceback (most recent call last):
File "/usr/lib/python3.10/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 3, in <module>
File "/home/ubuntu/FASLR/venv/lib/python3.10/site-packages/sklearn/base.py", line 867, in fit_transform
return self.fit(X, **fit_params).transform(X)
File "/home/ubuntu/FASLR/venv/lib/python3.10/site-packages/chainladder/tails/curve.py", line 165, in fit
tail = self._predict_tail(extrapolate)
File "/home/ubuntu/FASLR/venv/lib/python3.10/site-packages/chainladder/tails/curve.py", line 192, in _predict_tail
return self._get_tail_prediction(tail_ldf)
UnboundLocalError: local variable 'tail_ldf' referenced before assignment
For the first case and no exception for the 2nd.
Expected behavior
I would expect an invalid argument assignment to raise a valueerror.
Desktop (please complete the following information):
Describe the bug Some invalid arguments for the TailCurve class will raise an exception (although not the kind of exception we'd expect). Others will actually cause no exception when an exception should be raised. I can volunteer to take this one on.
To Reproduce
This leads to:
For the first case and no exception for the 2nd.
Expected behavior I would expect an invalid argument assignment to raise a valueerror.
Desktop (please complete the following information):