Skip to main content

Optimization framework for Daisy

Project description

daisypy-optim

Framework for optimization of Daisy parameters.

Overview

The framework can be used in two ways

  1. As a self-contained environment
  2. As a regular python module

Self contained optimization environment

The idea of self-contained environment is to create a repository that contains everything that is needed for the optimization (except the Daisy binary). This allow easy sharing, version control and archiving. This type of optimization is defined by

  • a single dai file template
  • zero or more python file templates
  • a python script that runs the simulation

A tool is included that generates the python script based on user input. Once generated, it can be adapted to specific needs. To start using daisypy-optim this way look at

Regular python modules

It is also possible to use daisypy-optim as a regular python module. Simply install with

pip install daisypy-optim@git+https://github.com/daisy-model/daisypy-optim

To enable CMA-ES

pip install cma

To enable scikit-optimize

pip install scikit-optimize joblib

All of the above

pip install daisypy-optim@git+https://github.com/daisy-model/daisypy-optim cma scikit-optimize joblib

And look at the examples and tests to see how to setup an optimization

Chossing an optimization method

There are several optimization methods available

  • sequential : A greedy approach that fixes one parameter at a time. Works well when optimizing few paramaters.
  • cma : CMA-ES. Works well for larger number of parameters and when the outcome depends strongly on parameter combinations. Does not work for single parameters.
  • skopt : scikit-optimize. Bayesian optimization. Very slow. Will be replaced with a BoTorch/Ax method.

Continuous/categorical parameters

Both continuous and categorical parameters are supported. Currently, the sequential method treats everything as categorial parameters (by sampling a fixed number of values from the continuous parameters). The other methods requires continuous parameters.

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

daisypy_optim-0.1.0.tar.gz (56.2 kB view details)

Uploaded Source

Built Distribution

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

daisypy_optim-0.1.0-py3-none-any.whl (49.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: daisypy_optim-0.1.0.tar.gz
  • Upload date:
  • Size: 56.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for daisypy_optim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec1bbd86f79b02495ae1f90921c07041e7b60e170dc02523a82df594ba48d085
MD5 e50217073988b527965dcfaf37a6cb3a
BLAKE2b-256 c32e65ce5f4ead48b9a8662c67116acc6eebcbfafe2f5362d667a1f9d9393be8

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisypy_optim-0.1.0.tar.gz:

Publisher: python-publish.yml on daisy-model/daisypy-optim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: daisypy_optim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 49.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for daisypy_optim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eaed9fe936a1e48338cb27fdd93fc3571d1e1ad59e74e2ec71c9db1ba029e68d
MD5 f1e11fdc99b190901c3c19a2710c6541
BLAKE2b-256 94fdd56e423964f7e7506012ef1c88dd26f24858bd8e3b6c05ce057f68d559be

See more details on using hashes here.

Provenance

The following attestation bundles were made for daisypy_optim-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on daisy-model/daisypy-optim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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