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

Sample random genotypes #149

Open
bknyaz opened this issue Jul 21, 2020 · 0 comments
Open

Sample random genotypes #149

bknyaz opened this issue Jul 21, 2020 · 0 comments

Comments

@bknyaz
Copy link

bknyaz commented Jul 21, 2020

Hi,
I would like to just sample random genotypes using your code without learning alphas_normal, alphas_reduce.
I'm using the following code and it seems to work fine. Just wanted to check in if you can notice any caveats with using it or suggest a simpler approach.

set_random_seed(111)  # some function to set seed everywhere
steps = np.random.randint(1,5)
model = cnn.model_search.Network(n_ch, n_classes, n_layers, criterion,
                                 steps=steps, multiplier=steps)  # multiplier seems to be required to be equal steps
genotype = model.genotype()  # random genotype
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