Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bootstrap fail when len(key_label) > 1 #425

Open
jbogaardt opened this issue Apr 11, 2023 · 0 comments
Open

[BUG] Bootstrap fail when len(key_label) > 1 #425

jbogaardt opened this issue Apr 11, 2023 · 0 comments
Assignees
Labels

Comments

@jbogaardt
Copy link
Collaborator

Describe the bug
When the key_labels of a triangle are greater than length 1, the BootstrapODP puts the triangle in a bad state.

To Reproduce

import chainladder as cl
clrd = cl.load_sample('clrd')['CumPaidLoss'].sum()
resampled_triangles = cl.BootstrapODPSample().fit(clrd).resampled_triangles_
print(len(resampled_triangles.key_labels)) # [GRNAME, LOB] => length 2
resampled_triangles.index # Errors

Expected behavior
We would either need to support key_label attributes of length 1 only or coerce the resampled triangles to some generic key_label like "iteration"

@jbogaardt jbogaardt added the Bug label Apr 11, 2023
@jbogaardt jbogaardt self-assigned this Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant