Skip to content

Commit

Permalink
GitHub Actions build openturns/otfmi 11793952139
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Nov 12, 2024
1 parent 5922a8f commit a2b9fa0
Show file tree
Hide file tree
Showing 134 changed files with 1,495 additions and 1,378 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,10 @@ def globalMetamodel(sample):

projectFunction = ot.KarhunenLoeveProjection(resultKL)
coefficientSample = projectFunction(outputFMUTestSample)
predictions = metamodel(inputTestSample)

validationKriging = ot.MetaModelValidation(
inputTestSample, coefficientSample, metamodel
)
Q2 = validationKriging.computePredictivityFactor()[0]
validation = ot.MetaModelValidation(coefficientSample, predictions)
Q2 = validation.computeR2Score()[0]
print(Q2)

# %%
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
},
"outputs": [],
"source": [
"projectFunction = ot.KarhunenLoeveProjection(resultKL)\ncoefficientSample = projectFunction(outputFMUTestSample)\n\nvalidationKriging = ot.MetaModelValidation(\n inputTestSample, coefficientSample, metamodel\n)\nQ2 = validationKriging.computePredictivityFactor()[0]\nprint(Q2)"
"projectFunction = ot.KarhunenLoeveProjection(resultKL)\ncoefficientSample = projectFunction(outputFMUTestSample)\npredictions = metamodel(inputTestSample)\n\nvalidation = ot.MetaModelValidation(coefficientSample, predictions)\nQ2 = validation.computeR2Score()[0]\nprint(Q2)"
]
},
{
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>otfmi.fmi.apply_initialization_script &mdash; otfmi documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-binder.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-dataframe.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-rendered-html.css" type="text/css" />
<link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
<link rel="stylesheet" href="../../_static/fonts.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=649a27d8" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery.css?v=d2d258e8" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-binder.css?v=f4aeca0c" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css?v=fc035491" />
<link rel="stylesheet" type="text/css" href="../../_static/fonts.css?v=5583d106" />


<link rel="shortcut icon" href="../../_static/Icon.ico"/>
<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -115,13 +116,13 @@
<div itemprop="articleBody">

<section id="otfmi-fmi-apply-initialization-script">
<h1>otfmi.fmi.apply_initialization_script<a class="headerlink" href="#otfmi-fmi-apply-initialization-script" title="Permalink to this heading"></a></h1>
<h1>otfmi.fmi.apply_initialization_script<a class="headerlink" href="#otfmi-fmi-apply-initialization-script" title="Link to this heading"></a></h1>
<dl class="py function">
<dt class="sig sig-object py" id="otfmi.fmi.apply_initialization_script">
<span class="sig-name descname"><span class="pre">apply_initialization_script</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">path_script</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#otfmi.fmi.apply_initialization_script" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">apply_initialization_script</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">path_script</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#otfmi.fmi.apply_initialization_script" title="Link to this definition"></a></dt>
<dd><p>Apply an initialization script to a model.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><dl class="simple">
<dt><strong>model</strong><span class="classifier">Pyfmi model object (pyfmi.fmi.FMUModelXXX).</span></dt><dd></dd>
<dt><strong>path_script</strong><span class="classifier">String, path to the script file.</span></dt><dd></dd>
Expand All @@ -140,7 +141,7 @@ <h1>otfmi.fmi.apply_initialization_script<a class="headerlink" href="#otfmi-fmi-
<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2017-2020 EDF-Phimeca.
<p>&#169; Copyright 2017-2023 EDF-Phimeca.
<span class="lastupdated">Last updated on Dec 31, 2020.
</span></p>
</div>
Expand Down
43 changes: 22 additions & 21 deletions otfmi/master/_generated/fmi/otfmi.fmi.get_causality_str.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>otfmi.fmi.get_causality_str &mdash; otfmi documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-binder.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-dataframe.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-rendered-html.css" type="text/css" />
<link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
<link rel="stylesheet" href="../../_static/fonts.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=649a27d8" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery.css?v=d2d258e8" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-binder.css?v=f4aeca0c" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css?v=fc035491" />
<link rel="stylesheet" type="text/css" href="../../_static/fonts.css?v=5583d106" />


<link rel="shortcut icon" href="../../_static/Icon.ico"/>
<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -115,24 +116,24 @@
<div itemprop="articleBody">

<section id="otfmi-fmi-get-causality-str">
<h1>otfmi.fmi.get_causality_str<a class="headerlink" href="#otfmi-fmi-get-causality-str" title="Permalink to this heading"></a></h1>
<h1>otfmi.fmi.get_causality_str<a class="headerlink" href="#otfmi-fmi-get-causality-str" title="Link to this heading"></a></h1>
<dl class="py function">
<dt class="sig sig-object py" id="otfmi.fmi.get_causality_str">
<span class="sig-name descname"><span class="pre">get_causality_str</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#otfmi.fmi.get_causality_str" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">get_causality_str</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#otfmi.fmi.get_causality_str" title="Link to this definition"></a></dt>
<dd><p>Get the causality of a variable (input, output, or other).</p>
<p>If the variable causality is “input” or “parameter”, its value can be
modified using otfmi.fmi.set_dict_value. Setting the value of a variable
with other causality is not possible (nonphysical).</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><dl class="simple">
<dt><strong>model</strong><span class="classifier">pyfmi.fmi.FMUModelXXX or str</span></dt><dd><p>Pyfmi model object or path to an FMU.</p>
</dd>
<dt><strong>name</strong><span class="classifier">str</span></dt><dd><p>Variable name</p>
</dd>
</dl>
</dd>
<dt class="field-even">Returns</dt>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><dl class="simple">
<dt><strong>causality</strong><span class="classifier">str</span></dt><dd><p>Causality identifier</p>
</dd>
Expand All @@ -151,7 +152,7 @@ <h1>otfmi.fmi.get_causality_str<a class="headerlink" href="#otfmi-fmi-get-causal
<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2017-2020 EDF-Phimeca.
<p>&#169; Copyright 2017-2023 EDF-Phimeca.
<span class="lastupdated">Last updated on Dec 31, 2020.
</span></p>
</div>
Expand Down
41 changes: 21 additions & 20 deletions otfmi/master/_generated/fmi/otfmi.fmi.get_fixed_value.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>otfmi.fmi.get_fixed_value &mdash; otfmi documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-binder.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-dataframe.css" type="text/css" />
<link rel="stylesheet" href="../../_static/sg_gallery-rendered-html.css" type="text/css" />
<link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
<link rel="stylesheet" href="../../_static/fonts.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=649a27d8" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery.css?v=d2d258e8" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-binder.css?v=f4aeca0c" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css?v=fc035491" />
<link rel="stylesheet" type="text/css" href="../../_static/fonts.css?v=5583d106" />


<link rel="shortcut icon" href="../../_static/Icon.ico"/>
<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand Down Expand Up @@ -115,14 +116,14 @@
<div itemprop="articleBody">

<section id="otfmi-fmi-get-fixed-value">
<h1>otfmi.fmi.get_fixed_value<a class="headerlink" href="#otfmi-fmi-get-fixed-value" title="Permalink to this heading"></a></h1>
<h1>otfmi.fmi.get_fixed_value<a class="headerlink" href="#otfmi-fmi-get-fixed-value" title="Link to this heading"></a></h1>
<dl class="py function">
<dt class="sig sig-object py" id="otfmi.fmi.get_fixed_value">
<span class="sig-name descname"><span class="pre">get_fixed_value</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#otfmi.fmi.get_fixed_value" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">get_fixed_value</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">model</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#otfmi.fmi.get_fixed_value" title="Link to this definition"></a></dt>
<dd><p>Get the values of the variables with ‘fixed’ variability,
ignoring aliases.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><dl class="simple">
<dt><strong>model</strong><span class="classifier">Pyfmi model object (pyfmi.fmi.FMUModelXXX) or path to an FMU.</span></dt><dd></dd>
</dl>
Expand All @@ -140,7 +141,7 @@ <h1>otfmi.fmi.get_fixed_value<a class="headerlink" href="#otfmi-fmi-get-fixed-va
<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2017-2020 EDF-Phimeca.
<p>&#169; Copyright 2017-2023 EDF-Phimeca.
<span class="lastupdated">Last updated on Dec 31, 2020.
</span></p>
</div>
Expand Down
Loading

0 comments on commit a2b9fa0

Please sign in to comment.