Last active
September 13, 2024 22:00
-
-
Save robintux/616fb03de7fce46c495945501ddc781c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/spyder_kernels/customize/utils.py:209 in exec_encapsulate_locals | |
exec_fun(compile(code_ast, filename, "exec"), globals) | |
File /mnt/251793b5-818c-4841-b9d4-2c47bb98fef0/CTIC/PDE_MachineLearning_CTIC/Clases_Modulos_6_7_8/Clases2024/sesion2/script01.py:151 | |
grid_search_result = grid_search.fit(Xtrain, Ytrain) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/sklearn/base.py:1473 in wrapper | |
return fit_method(estimator, *args, **kwargs) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/sklearn/model_selection/_search.py:1018 in fit | |
self._run_search(evaluate_candidates) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/sklearn/model_selection/_search.py:1572 in _run_search | |
evaluate_candidates(ParameterGrid(self.param_grid)) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/sklearn/model_selection/_search.py:964 in evaluate_candidates | |
out = parallel( | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/sklearn/utils/parallel.py:74 in __call__ | |
return super().__call__(iterable_with_config) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/joblib/parallel.py:1918 in __call__ | |
return output if self.return_generator else list(output) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/joblib/parallel.py:1847 in _get_sequential_output | |
res = func(*args, **kwargs) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/sklearn/utils/parallel.py:136 in __call__ | |
return self.function(*args, **kwargs) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/sklearn/model_selection/_validation.py:876 in _fit_and_score | |
estimator = estimator.set_params(**clone(parameters, safe=False)) | |
File ~/anaconda3/envs/python310_keras215_numpy126/lib/python3.10/site-packages/scikeras/wrappers.py:1175 in set_params | |
raise ValueError( | |
ValueError: Invalid parameter activation for estimator KerasClassifier. | |
This issue can likely be resolved by setting this parameter in the KerasClassifier constructor: | |
`KerasClassifier(activation=relu)` | |
Check the list of available parameters with `estimator.get_params().keys()` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment