This project provides a few-cost estimate for Neural Architecture Search.
- This code covers the core function of the proposed MOTE.
- File "example.py" and "gen_mote.py" is the main program, which records the code for MOTE generation.
- Files "meta_models.py", "reduced_data.py" respectively correspond to the core methods mentioned in the paper - Reduced Architecture(RA) and Reduced Data(RD).
The paper has been accepted by NeurIPS 2024.
Paper Link: https://reurl.cc/KdMalq
from nas_prcss import CellPth2Cell
from gen_mote import GetProxyC100TrainData, CellPth2MOTE
train_x,train_y=GetProxyC100TrainData(labels_len=10)
CellPth2MOTE(train_x,train_y,cell_pth,cell_type="nas201",proxy_labels_len=10)
cell_dict=CellPth2Cell(cell_pth)
print(cell_dict["mote"])
from nas_prcss import SamplingCellPths,FilteringByDirtyBit
from eval_cell import CellPths2Psp
cells_dir="data/nasbench201_img16-10"
gt_key="test_accuracy_200"
cell_pths=SamplingCellPths(cells_dir,shuffle=True)
psp=CellPths2Psp(cell_pths,gt_key,"mote")
print(psp)
The NASBench-101 data set is too large, here only the NASBench-201, we will provide NB101 ASAP.
coming soon.
For detailed report, please refer to our paper.
- Provide NB101.
- Provide more complete code.