Skip to content

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

evoxdatabase

Usage

Download db.sqlite3 from Google Drive: https://drive.google.com/file/d/1JYzA614WdWHvUzBrlpSnvto0V8l8HVm1/view?usp=sharing

Unzip it into this folder and rename it to db.sqlite3.

Example 1 (filter)

>>> import init
>>> init.init()
>>> from nasbench101.models import NASBench101Result
>>> NASBench101Result.objects.filter(flops__gt=10000) # flops > 10000
>>> NASBench101Result.objects.filter(flops__lt=10000) # flops < 10000
>>> NASBench101Result.objects.filter(flops__lt=10000, params__gt=1) # flops < 10000 and params > 1

Example 2 (update)

>>> import init
>>> init.init()
>>> from nasbench101.models import NASBench101Result
>>> x = NASBench101Result.objects.filter(flops__gt=10000)[: 10] # get first 10 results
>>> x = x[0]
>>> x.flops = 100
>>> x.save()

Example 3 (Sample)

>>> import init
>>> init.init()
>>> from nasbench101.models import NASBench101Result
>>> NASBench101Result.objects.filter(index__lt=1000).order_by('?')[: 10] # Randomely sample 10 results

Webpage

python manage.py runserver 0.0.0.0:8000
# usage: python manage.py runserver <IP>:<Port>

This will run a webserver on your computer(port: 8000)

Open http://localhost:8000/admin/

Login with:

Username: test

Password: 123321

Acknowledgement

Codes are developed upon: NAS-Bench-101 , NAS-Bench-201, NAS-Bench-301 , NATS-Bench , Once for All , Django

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages