tpot
tpot copied to clipboard
Can I use TransformedTargetRegressor in tpot?
In some cases transforming the target will improve the prediction drastically for regression problems (see: https://scikit-learn.org/stable/auto_examples/compose/plot_transformed_target.html)
Can I use the sklearn.compose.TransformedTargetRegressor step in a tpot pipeline, so that it transforms the target accordingly, but evaluates the predictions after applying the inverse_transform? Also the final predictions should be retransformed by inverse_transform.
Looks like that works:
'sklearn.compose.TransformedTargetRegressor': {
'regressor': {
'sklearn.linear_model.LinearRegression': {
'normalize': [True, False],
'copy_X': [True] }
},
'func': {'numpy.log': None}, 'inverse_func': {'numpy.exp': None}
},
Is there a way to include a list of regressors?