ipazc / deepevolution Goto Github PK
View Code? Open in Web Editor NEWDeepevolution is a PIP package for evolving tensorflow keras models with a genetic algorithm towards fitting a fitness function.
Deepevolution is a PIP package for evolving tensorflow keras models with a genetic algorithm towards fitting a fitness function.
Hallo Iván,
first of all, thank you for your code, it is hard to find a good one for keras.
My first question is regarding the model validation. I did not quite find a way to implement a validaition dataset method in your code. Normally you generate a test/train dataset, a validation datasat and a testset. With your code, the model is trained on the train/test dataset AND validated against it. I would like to use a validation dataset for that use. In Keras you would implement this with validation_split or a pre-defined validation dataset. Is there a way to implement this without changing the deepevolution code itself?
Second question is about extracting the best fitted model. Somehow keras does not use the best fitted model for other functions (model.summary; model.predict...) but only uses the initial model. Is there a special kind of model call needed?
At first congrats for the initiative, your implementation is brilliant!
I'm getting sporadically the same error in line:
weights_sorted = pd.Series(self._generation, index=scores).sort_index(ascending=False)
that is triggered from inside the series.py inside pandas, at the code:
elif is_list_like(data):
# a scalar numpy array is list-like but doesn't
# have a proper length
try:
if len(index) != len(data):
raise ValueError(
f"Length of passed values is {len(data)}, "
f"index implies {len(index)}."
What I noticed is that this only occurs when index become (for some reason) a pandas Multindex instead of a list of arrays, it raises the following error message:
ValueError: Length of passed values is 14, index implies 1.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.