This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Le but de ce script est d'obtenir la décomposition en polynômes du chaos | |
exacte de la fonction Ishigami. | |
""" | |
# %% | |
import sympy as sp | |
import openturns as ot | |
from joblib import Parallel, delayed | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Read a PCE from a table of pre-computed coefficients. | |
Michaël Baudin, 2023 | |
Reference | |
--------- | |
https://github.com/openturns/openturns/issues/2334 | |
""" | |
# %% | |
import openturns as ot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Experiment the selection history feature available at : | |
https://github.com/openturns/openturns/pull/2284 | |
Michaël Baudin, 2023 | |
""" | |
# %% | |
from openturns.usecases import ishigami_function | |
from openturns.usecases import flood_model | |
from openturns.usecases import fireSatellite_function | |
import openturns as ot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Create a FunctionalChaosResult with extra-features. | |
Compute Sobol' first order (closed) and total indices of a group of variables. | |
Michaël Baudin, 2023 | |
""" | |
import openturns as ot | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Michaël Baudin (2023) | |
Compare different versions of the flooding model. | |
Reference | |
--------- | |
http://openturns.github.io/openturns/1.19/usecases/use_case_flood_model.html | |
""" | |
# %% | |
import openturns as ot | |
import openturns.viewer as otv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Reproduces (Burman, 1989) with OpenTURNS (1.20). | |
P. Burman. Comparative study of Ordinary Cross-Validation, | |
v-Fold Cross-Validation and the repeated Learning-Testing Methods. | |
Biometrika, 76(3):503–514, 1989. | |
""" | |
# %% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Compute the distribution of the cross-validation estimators of the mean squared | |
error (MSE) of a surrogate model. | |
Use leave-one-one, K-Fold estimators and Monte-Carlo MSE estimators. | |
References | |
---------- | |
https://github.com/openturns/openturns/pull/2330 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Michaël Baudin, Juin-Juillet 2023. | |
## Introduction | |
Benchmark the PR https://github.com/openturns/openturns/pull/2330 | |
https://gist.github.com/mbaudin47/794a36842e3f838014bc7069904412ef | |
This script considers the cross-validation of a polynomial chaos expansion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Source : | |
https://matplotlib.org/stable/plot_types/unstructured/tricontourf.html#sphx-glr-plot-types-unstructured-tricontourf-py | |
https://openturns.discourse.group/t/contour-plots-using-matplotlib/272/2 | |
""" | |
import openturns as ot | |
import openturns.viewer as otv | |
import matplotlib.pyplot as plt | |
import matplotlib as mpl | |
import pylab as pl |