PDARTS.rst 519 Bytes
Newer Older
1
2
3
4
5
6
P-DARTS
=======

Examples
--------

QuanluZhang's avatar
QuanluZhang committed
7
:githublink:`Example code <examples/nas/legacy/pdarts>`
8
9
10
11
12
13
14

.. code-block:: bash

   # In case NNI code is not cloned. If the code is cloned already, ignore this line and enter code folder.
   git clone https://github.com/Microsoft/nni.git

   # search the best architecture
QuanluZhang's avatar
QuanluZhang committed
15
   cd examples/nas/legacy/pdarts
16
17
18
19
20
   python3 search.py

   # train the best architecture, it's the same progress as darts.
   cd ../darts
   python3 retrain.py --arc-checkpoint ../pdarts/checkpoints/epoch_2.json