Closed henrydingliu closed 1 year ago
Thanks for finding. This is a case where broadcasting should take precendence over index alignment. That is
if X.shape[0] == 1 or est.cdf_.shape[0] == 1
, then these should multiply together like numpy arrays. Basic arithmetic works:
ultimate = (
clrd[clrd["LOB"]=="comauto"] *
est.cdf_.iloc[..., :-1]
).latest_diagonal
So I think there is an issue in intersection
method of the Chainladder model that is not allowing broadcasting when it should.
Describe the bug applying a cl estimator to another triangle doesn't always work
To Reproduce
Expected behavior the code inside the try should work
Desktop (please complete the following information):