When giving custom name to regrouped variables (currently set to Others), the change does not work and Others is keep appearing.
Looks like the parameter is set in class
|
def __init__(self, regroup: bool=True, regroup_name: str="Other", |
but the value in the body is actually hard-coded:
|
return data.apply(lambda x: str(x) if x in categories else "Other") |
When giving custom name to regrouped variables (currently set to
Others), the change does not work andOthersis keep appearing.Looks like the parameter is set in class
cobra/cobra/preprocessing/categorical_data_processor.py
Line 61 in 0133435
but the value in the body is actually hard-coded:
cobra/cobra/preprocessing/categorical_data_processor.py
Line 453 in 0133435