Code Monkey home page Code Monkey logo

Comments (7)

bkj avatar bkj commented on May 12, 2024 4

OK that works -- I can verify that running train_search.py and training the resulting genotype gives comparable results to the DARTS model in cnn/genotypes.py.

from darts.

quark0 avatar quark0 commented on May 12, 2024 2

Yes, just copy & paste it into genotypes.py as you described : )

Then, run python train.py --arch $NAME_OF_THE_ARCH --auxiliary --cutout for evaluation.

from darts.

bkj avatar bkj commented on May 12, 2024

Cool thanks -- and how would you recommend sampling a random architecture? Something like this?

model = Network(args.init_channels, CIFAR_CLASSES, args.layers, criterion)
model.alphas_normal = Variable(torch.randn(k, num_ops))
model.alphas_reduce = Variable(torch.randn(k, num_ops))
random_genotype = model.genotype()

from darts.

quark0 avatar quark0 commented on May 12, 2024

Yep, that should do.

from darts.

avn3r avatar avn3r commented on May 12, 2024

I am also getting around 89% validation accuracy when running train_search.py. Are these expected results for this step. I see no expected results for this in the documentation or paper.

from darts.

quark0 avatar quark0 commented on May 12, 2024

It looks fine. The validation acc during arch search does not tell too much because the weights are under-trained. You'll need to train the architecture from scratch in order to evaluate it and achieve ~2.83%.

from darts.

twangnh avatar twangnh commented on May 12, 2024

@quark0 hi, I'm wondering how many epochs do you train the searched architecture, I used the searched arch on epoch 49, and it it only gets 95.0 valid acc after retrained for 350 epochs

from darts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.