New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend with MLPClassifer #525
Comments
@ahn1340 were you able to progress on the extending Auto-sklearn example? |
Thx guys, actually the issue here is the hyperparam is a list of tuples, for other params, it's ok to work with. |
Btw, I tried params like: Shuffle, early_stopping, nesterovs_momentum, these params are true or false. Once I tried to set like: It will show value error due to value type check in sklearn MLP code: |
Check the random forest hyperparameter definition and casting to learn how to use boolean hyperparameters: https://github.com/automl/auto-sklearn/blob/master/autosklearn/pipeline/components/classification/random_forest.py
I would suggest you use integers here. One integer for the depth of the network, and one integer for the number of neurons per layer which is only active if the network is deep enough. Please check XGBoost to learn how to use so-called conditional hyperparameters: https://github.com/automl/auto-sklearn/blob/master/autosklearn/pipeline/components/classification/xgradient_boosting.py There's also a greater than condition which you can use for the neural network. |
For hyperparam of tuples, have tried your suggestion, it works, thx:) |
Closing this due to inactivity - also, there's now an example on this: http://automl.github.io/auto-sklearn/master/examples/example_extending_classification.html#sphx-glr-examples-example-extending-classification-py. |
Dear experts,
I tried to extend MLP from sklearn as a candidate model. However, it seems very hard to set search space for hidden_layer_sizes as a categorical hyper, for example:
hidden_layer_sizes = CategoricalHyperparameter(
"hidden_layer_sizes", [(20,10),(10,10)]
)
I tried OrdinalHyperparameter, but seems auto-sklearn still not supports it.
Appreciate if you can provide any help on it.
Thx
Wilson
The text was updated successfully, but these errors were encountered: