Optimization framework for Daisy
Project description
daisypy-optim
Framework for optimization of Daisy parameters.
Overview
The framework can be used in two ways
- As a self-contained environment
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec1bbd86f79b02495ae1f90921c07041e7b60e170dc02523a82df594ba48d085
|
|
| MD5 |
e50217073988b527965dcfaf37a6cb3a
|
|
| BLAKE2b-256 |
c32e65ce5f4ead48b9a8662c67116acc6eebcbfafe2f5362d667a1f9d9393be8
|
Provenance
The following attestation bundles were made for daisypy_optim-0.1.0.tar.gz:
Publisher:
python-publish.yml on daisy-model/daisypy-optim
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
daisypy_optim-0.1.0.tar.gz -
Subject digest:
ec1bbd86f79b02495ae1f90921c07041e7b60e170dc02523a82df594ba48d085 - Sigstore transparency entry: 995853340
- Sigstore integration time:
-
Permalink:
daisy-model/daisypy-optim@25c193a25ef582d50c491e44285f410a7fcdb4f2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daisy-model
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@25c193a25ef582d50c491e44285f410a7fcdb4f2 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaed9fe936a1e48338cb27fdd93fc3571d1e1ad59e74e2ec71c9db1ba029e68d
|
|
| MD5 |
f1e11fdc99b190901c3c19a2710c6541
|
|
| BLAKE2b-256 |
94fdd56e423964f7e7506012ef1c88dd26f24858bd8e3b6c05ce057f68d559be
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
daisypy_optim-0.1.0-py3-none-any.whl -
Subject digest:
eaed9fe936a1e48338cb27fdd93fc3571d1e1ad59e74e2ec71c9db1ba029e68d - Sigstore transparency entry: 995853373
- Sigstore integration time:
-
Permalink:
daisy-model/daisypy-optim@25c193a25ef582d50c491e44285f410a7fcdb4f2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daisy-model
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@25c193a25ef582d50c491e44285f410a7fcdb4f2 -
Trigger Event:
release
-
Statement type: