Skip to content
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

Wrong number of Layers in parts/space when tuning number of Layers #253

Open
loublock opened this issue Aug 9, 2019 · 0 comments
Open

Comments

@loublock
Copy link

loublock commented Aug 9, 2019

According to issue #204 the number of layers could be tuned by a for-loop

model = ...
num_layers = <result of randint>
for _ in range(num_layers):
        model.add(Dense({{choice([np.power(2,5),np.power(2,9),np.power(2,11)])}}))
        model.add(Activation({{choice(['tanh','relu', 'sigmoid'])}}))
        model.add(Dropout({{uniform(0, 1)}}))

But the layers added in the for-loop are missing when you look in the space object. This is because hyperparameter_names(model_string) is not able to find the string parts in mode_string.

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

No branches or pull requests

1 participant