diff --git a/.ci_support/run_docker_linux.sh b/.ci_support/run_docker_linux.sh index 6f633e9..30324bb 100755 --- a/.ci_support/run_docker_linux.sh +++ b/.ci_support/run_docker_linux.sh @@ -3,7 +3,7 @@ set -xe export SOURCE_DATE_EPOCH=1609455600 -pip install -r /io/doc/requirements.txt --break-system-packages +aurman -S python-sphinx-renku-theme python-sphinx_rtd_theme --noconfirm --noedit cp -r /io/* /tmp cd /tmp diff --git a/doc/application/plot_metamodel.py b/doc/application/plot_metamodel.py index 8b91900..ce86e7a 100644 --- a/doc/application/plot_metamodel.py +++ b/doc/application/plot_metamodel.py @@ -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) # %% diff --git a/doc/conf.py b/doc/conf.py index c2f97a6..baa17f3 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -68,7 +68,7 @@ templates_path = ["_templates"] # The suffix(es) of source filenames. -source_suffix = [".rst"] +source_suffix = {'.rst': 'restructuredtext'} # The master toctree document. master_doc = "index"