Open jbogaardt opened 1 year ago
Describe the bug When the key_labels of a triangle are greater than length 1, the BootstrapODP puts the triangle in a bad state.
BootstrapODP
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"
key_label
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
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"