Skip to main content

Efficient framework for building surrogates of multidisciplinary systems using the adaptive multi-index stochastic collocation (AMISC) technique.

Project description

Logo pdm-managed Python version Copier PyPI build docs tests Code Coverage Algorithm description

Efficient framework for building surrogates of multidisciplinary systems using the adaptive multi-index stochastic collocation (AMISC) technique.

⚙️ Installation

Ensure you are using Python 3.11 or later. You can install the package from PyPI using pip:

pip install amisc

If you are using pdm in your own project, then you can use:

pdm add amisc

# Or in editable mode from a local clone...
pdm add -e ./amisc --dev

📍 Quickstart

import numpy as np

from amisc import System

def fun1(x):
    y = x * np.sin(np.pi * x)
    return y

def fun2(y):
    z = 1 / (1 + 25 * y ** 2)
    return z

system = System(fun1, fun2)

system.inputs()['x'].domain = (0, 1)   # set domain of surrogate for `x`
system.outputs()['y'].domain = (0, 1)  # set domain of surrogate for `y`

system.fit()

x_test = system.sample_inputs(10)
y_test = system.predict(x_test)

🏗️ Contributing

See the contribution guidelines.

📖 Reference

AMISC paper [1].

Made with the copier-numpy template.

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

amisc-0.5.0.tar.gz (125.9 kB view details)

Uploaded Source

Built Distribution

amisc-0.5.0-py3-none-any.whl (105.6 kB view details)

Uploaded Python 3

File details

Details for the file amisc-0.5.0.tar.gz.

File metadata

  • Download URL: amisc-0.5.0.tar.gz
  • Upload date:
  • Size: 125.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for amisc-0.5.0.tar.gz
Algorithm Hash digest
SHA256 51e944623817c2c31e29972dcde9e6a81865d69d33061010bf82783b564f716a
MD5 a02324709f8a689db7bb4e599e57cc4c
BLAKE2b-256 d56c7e8513daf24a9167293a9e754491e23aa243d18446bfd141c1dc338dccbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for amisc-0.5.0.tar.gz:

Publisher: deploy.yml on eckelsjd/amisc

Attestations:

File details

Details for the file amisc-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: amisc-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 105.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for amisc-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5176f6f670dde7164781f3246be4aad57a512964f7e352a95ef788a34a2623ac
MD5 89803f80d2b4a3fcac5187a49888353a
BLAKE2b-256 57f2bed720368a5b2aab61bc23ee27193d5cd235503d9ec2441ac558eb815cbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for amisc-0.5.0-py3-none-any.whl:

Publisher: deploy.yml on eckelsjd/amisc

Attestations:

Supported by

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