Skip to main content

Add your description here

Project description

Making a hyperparameter tuning / NAS library for deep learning.

Usage:

import smoothopt as smo

study = smo.minimize(
    'val_loss',
    params={
        'num_epochs': smo.range(1, 100),
        'learning_rate': smo.range(1e-6, 0.02, log_scale=True),
        'batch_size': smo.ordinal([64, 128, 256, 512]),
        'activation': smo.choice([nn.ReLU(), nn.SiLU(), nn.GELU(), nn.Tanh()]),
    }
)

while True:
    trial = study.start_trial()
    metrics = train_model(trial.params) # Your model training loop
    trial.report(metrics)
    study.save('study.pkl')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smoothopt-0.1.0.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smoothopt-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file smoothopt-0.1.0.tar.gz.

File metadata

  • Download URL: smoothopt-0.1.0.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for smoothopt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 be3d8d547b8afaf96694c2c4e47729c09d1793e910c54db9af25718d9c180307
MD5 59bce0cafbb4436be57cf26eedfa806c
BLAKE2b-256 74e6de4e2e088403e6ba9f17106a1f43738b99debde4094c9b4447f42d68aef5

See more details on using hashes here.

File details

Details for the file smoothopt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: smoothopt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for smoothopt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca986c572d305769b4cab7b02f4686b4e3b5a44f19cca1a9ad932d24cde37b3
MD5 e9581adcfffc5ec563a0a26ff312e1da
BLAKE2b-256 bc760219fd49da8c91f08529ecefaa8a179f9b30d03d024b95a3fc9ae0575aca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page