Skip to content

Delaunay/sample-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Space

from sspace import Space, either, eq
import json

space = Space(backend='ConfigSpace')

optim = space.categorical('optimizer', ['sgd', 'adam'])

sgd_lr = space.loguniform('optimizer.lr', 1, 2, quantization=0.01)
sgd_lr.enable_if(either(eq(optim, 'adam'), eq(optim, 'sgd')))
sgd_lr.forbid_equal(1)

for sample in space.sample(2):
    print(sample)

print(json.dumps(space.serialize(), indent=2))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages