EpistasisLab / EpistasisLab/tpot
Mismatched keywords between TPOT and scikit-learn
- Dominant language
- Jupyter Notebook
- Stars
- 10.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
When using verbose=3 on the TPOTRegressor many warnings are given about mismatched keyword arguments, such as GradientBoostingRegressor being passed 'ls' instead of 'squared_error' as the metric during the mutation step.
Examples:
_pre_test decorator: _mate_operator: num_test=0 'str' object has no attribute 'arity'.
_pre_test decorator: _random_mutation_operator: num_test=0 The 'loss' parameter of GradientBoostingRegressor must be a str among {'huber', 'quantile', 'squared_error', 'absolute_error'}. Got 'ls' instead..
_pre_test decorator: _random_mutation_operator: num_test=0 The 'loss' parameter of SGDRegressor must be a str among {'huber', 'squared_epsilon_insensitive', 'epsilon_insensitive', 'squared_error'}. Got 'squared_loss' instead..
_pre_test decorator: _random_mutation_operator: num_test=0 The 'loss' parameter of GradientBoostingRegressor must be a str among {'huber', 'quantile', 'squared_error', 'absolute_error'}. Got 'lad' instead..
## Process to reproduce the issue
Fit TPOTRegressor with the newest versions of TPOT and scikit-learn.
## Possible fix
Update the kwargs to match what is currently used in scikit-learn (or find an alternative to hard-coding them as string literals)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.