Created
June 16, 2021 10:30
-
-
Save Steboss89/711b3b451f3e726928fe4048c6fe774a to your computer and use it in GitHub Desktop.
Possible approach to implement the search strategy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def search_strategy(): | |
r""" Function to combine search space bits together | |
and create a new model""" | |
# retrieve the output from search space | |
space_output = search_space() | |
# from here use a suitable technique to retrieve new models | |
models = MonteCarloSearchTree(space_output) | |
# alternatively we could build something like | |
model = Sequential() | |
for layers in space_output: | |
model.add(layer) | |
# add conditions on layers e.g. add a layer randomly | |
return model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment