Closed jordan-bird closed 1 year ago
I think I managed to fix this with Pull Request #103
Switching from NumPy to Python's built-in random.choice enables selection of 2D categorical parameters. I now have this algorithm searching for Neural Net Hyperparameters.
Hi @jordan-bird thanks for the report! I just left a couple of comments on the pull request, let me know if you have any questions
Is it possible with the hidden layer parameter of MLP use a tuple of integers something like (Integer(10,100), Integer(20,30)) to define the options for two hidden layers?
Hi @santialferez, currently there is already a PR working on this issue, I'll take into account the tuple suggestion while evaluating it
Thanks
This has been merged to master in #103 , it will be available in the next release
System information OS Platform and Distribution: Windows 10 Sklearn-genetic-opt version: 0.9.0 Scikit-learn version: 1.0.2 Python version: 3.7.9
Describe the bug Passing tuples as hyperparameters causes the simulation to crash at the start with "ValueError: a must be 1-dimensional"
To Reproduce Messy code but this will throw the error:
Expected behavior The algorithm should select one of the tuples as the hidden layers and neuron counts e.g. (50,100,10) would create three hidden layers in the network of 50, 100, and 10 neurons, respectively
is there any way around this error? Thanks in advance!