Skip to content

Instantly share code, notes, and snippets.

@Steboss89
Created June 16, 2021 10:30
Show Gist options
  • Save Steboss89/711b3b451f3e726928fe4048c6fe774a to your computer and use it in GitHub Desktop.
Save Steboss89/711b3b451f3e726928fe4048c6fe774a to your computer and use it in GitHub Desktop.
Possible approach to implement the search strategy
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