-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathREADME
More file actions
37 lines (28 loc) · 948 Bytes
/
README
File metadata and controls
37 lines (28 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Neural Architecture Search with Feature Models
## Prerequisite
### Python
The code should be run using python 3.5, Tensorflow 1.12.0, Keras 2.2.4, PIL, Validators
### Tensorflow
```bash
sudo pip install tensorflow
```
if you have gpu,
```bash
pip install tensorflow-gpu
```
### Keras
Keras is included in the requirements. Install all the requirements of the file
To set Keras backend to be tensorflow (two options):
```bash
1. Modify ~/.keras/keras.json by setting "backend": "tensorflow"
2. KERAS_BACKEND=tensorflow python gen_diff.py
```
## First run
run the example
```bash
python ./full.py
```
It will load the base product of a feature model (for instance lenet5.json)
This file is generated with Feature model product parser.
## Building a .json product
Use the script featuremode_to_json.py to convert a product generated by PLEDGE (https://github.com/christopherhenard/pledge) into a json that can be parsed by the generator