-
Notifications
You must be signed in to change notification settings - Fork 112
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
possible contributions & question about population scoring method #13
Comments
Thanks for your feedback. Adding the option to optimize loss vs accuracy is something I've been wanting to do.
|
ok so I have created a pull request for parts 1 and 6 . So only changes to Also ...I have changed the Shall I include this in another request? |
As I mentioned in PR #13, I think switching to the functional API is a good idea. That'd make another good PR. |
cool i will close this now and take up in future PRs... |
@leaprovenzano, @joeddav, it looks like the functional API is really useful. May I ask when the functional API will be available? |
@wenbostar what exactly is it you're trying to do? @leaprovenzano was referring to changing the underlying code to utilize the functional API, but that wouldn't affect you from a user perspective because Keras' API is all abstracted away anyway. |
@joeddav , I want to try some new activation functions, such as Leaky Relu. |
Yeah, unfortunately with the way Keras' "advanced activations" work there's not really an easy way to encode them into the genome with the current setup. |
Hi
This Library is a great idea and has a lot of potential for model selection! Thank you!
I have been adding a couple of enhancements to my fork. Essentially I just wanted to use validation loss as a metric and ended up adding lots of other stuff as well. I'm still thinking my revisions are messy and obviously contain some breaking changes but I'm happy to test and submit individual pull requests per change if any of the changes below are helpful:
GenomeHandler
is passed a metric default is"accuracy"
which sets maximizing or minimizing objective forDEvol
so we can optimize validation loss instead of accuracy if we choose. ( In actual fact this whole thing could be passed directly on init toDEvol
if it was not referenced in theGenomeHandler
inbest_genome
, but that would probably not make sense).I added a
flatten_layers
param toGenomeHandler
so that we include the global max and average pooling in the search. the parameter nameflatten_layers
is horrible through, I am trying to come up with something better.Added an arg for
DEvol
to fit verbose, It was something I wanted and I noticed it was in the projects section. It just calls fit withverbose=1
and doesn't look so hot with the tqdm so maybe not what you're looking for.I added
nadam
, vanilla sgd and sgd with momenum, nesterov, & decay to optimizers. I'm not sure that this is really a nessesity since users could add themselves , but it's nice to have sgd especially to compare to newer (possibly less stable) optimizers.added
Elu
to list of activations. As above could be argued that it doesn't need to be a default (& mixed results with batchnorm so...)I also just wanted to ask about the
score
method ofPopulation
class:I was just a little confused as to why the values needed to be so large, where we are already min/max scaling fitnesses? I have left this out (using only scaling) and am not seeing a difference. I thought I must be missing something so I wanted to ask.
The text was updated successfully, but these errors were encountered: