Skip to content

Update pygad.py #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update pygad.py #1

wants to merge 1 commit into from

Conversation

tfarrag2000
Copy link
Owner

@tfarrag2000 tfarrag2000 commented Jul 11, 2020

I hope to thank you very much
This my first contribution to a project in GitHub. so, in advance, I'm sorry for any mistake.

I add an option for the mutation types called "random_dict". I add genes_range_dict variable and random_dict_mutation & initialize_population_dict functions.

This update adds more power to this wonderful project. It enables PyGad to work in discrete optimization problems
for example : to optimize a deep nn network architecture I use this

genes_range_dict ={"stacked_layers_num": [1, 3, 5],
"Dense_neurons_n1": [0, 32, 64, 256, 512],
"Dense_neurons_n2": [8, 32, 64, 256, 512],
"Dropout": [0, 0.2, 0.5, 0.8],
"optimizer": ['SGD', 'RMSprop', 'Adagrad', 'Adadelta', 'Adam', 'Adamax', 'Nadam']
}

I hope to thank you very much
This my first contribution to and project in GitHub. so, in advance, I'm sorry for any mistake.

I add an option for the mutation types called "random_dict". I add genes_range_dict variable and  random_dict_mutation & initialize_population_dict functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant