No project description provided
Project description
Parameter Space Exploration and CMA-ES Optimisation
Extension of optimflow.
Install
pip install optimflow-lifex
Run parameters exploration
out_path = Path(__file__).parent / "out"
class CMAESParams(OptimParams):
Ko = param.Number(0.5, bounds=(0, 2), doc="")
Cao = param.Number(10, bounds=(5, 25), doc="")
simulation_params = LifexParams()
optim_params = CMAESParams()
def lifex_worker(dname: str):
params = LifexParams.load_from(dname)
Ko = params.lifex_param_set.get("/Ionic model/TTP06/Physical constants/Ko")
t = np.linspace(0, 1, 100)
res = Ko * np.sin(2 * np.pi * t)
np.savetxt(params.out_dir / "result.txt", res)
explo = LifexParameterSpaceExploration(out_path)
explo.dump_params(simulation_params, optim_params)
explo.run(lifex_worker)
explo.gather_results()
explo.plot_results()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
optimflow_lifex-0.0.2.tar.gz
(4.0 kB
view details)
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 optimflow_lifex-0.0.2.tar.gz.
File metadata
- Download URL: optimflow_lifex-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a64491c3f7c2c9dc353d115460870f0fce2003229421927815e208e05e87b87b
|
|
| MD5 |
d812e52f2688c1be607655f2e5489a13
|
|
| BLAKE2b-256 |
1fa5bece75b10f9d6d12ed594b62d9a684f2e8a681cd2f336d7a73e165c2354c
|
File details
Details for the file optimflow_lifex-0.0.2-py3-none-any.whl.
File metadata
- Download URL: optimflow_lifex-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31e1e702b2734778c8c1afef806ee6c4256e6531a61cb5ecdc3b3387e7895a53
|
|
| MD5 |
410fcbfe7768f71410949c3d1d9be572
|
|
| BLAKE2b-256 |
63160a4bedc0dcee77d2acf613330472f08f3202534e12a871019542a3402bab
|