No model results for `compare_models()` in regression, while applying `transform_target` [pycaret] - TagMerge

No model results for `compare_models()` in regression, while applying `transform_target` [pycaret]

OleksiyAnokhinAsked 4 months ago

Team, I am running a simple regression and everything works.

When I try to add:

`transform_target = True`, `transform_target_method = 'box-cox'`, # or another method

the modelling results for compare_models() are not printed.

Thanks

Source: link

moezali1Answered 4 months ago

@OleksiyAnokhin Can you set errors='raise' in the compare_models function and show us what the error says?

OleksiyAnokhinAnswered 4 months ago

@moezali1 , this is with errors = raise

image

This is without transform_target

image

moezali1Answered 4 months ago

@OleksiyAnokhin Can you share the dataset so I can see what's going on?

Do you have negative values in your target?

OleksiyAnokhinAnswered 4 months ago

@moezali1 , thanks, I wish. I have 50% of zeros in my target variable. I guess it is an issue. Because it is super skewed. I tried BoxCox1p and sqrt transformations for the target variable and it does not look good. Might need to try this yeo-johnson via PowerTransformer(method='yeo-johnson'). Thanks!

Recent Issues

    Programming Languages