From b78fe79738603da284c418d798dde6b3d04601a3 Mon Sep 17 00:00:00 2001 From: farid <farid.mohammadi@iws.uni-stuttgart.de> Date: Tue, 26 Jan 2021 09:36:50 +0100 Subject: [PATCH] [PA-A] removed the validate PCEModel in the post processing step. --- BayesValidRox/tests/PA-A/Benchmark_PAA.py | 10 +++++----- BayesValidRox/tests/PA-A/ffpm_validation_stokespnm.py | 3 --- BayesValidRox/tests/PA-A/ref_stokesdarcy.py | 3 ++- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/BayesValidRox/tests/PA-A/Benchmark_PAA.py b/BayesValidRox/tests/PA-A/Benchmark_PAA.py index 6697bc361..4d14ec08c 100644 --- a/BayesValidRox/tests/PA-A/Benchmark_PAA.py +++ b/BayesValidRox/tests/PA-A/Benchmark_PAA.py @@ -262,8 +262,8 @@ if __name__ == "__main__": # # Model stokesdarcy-BJ - PCEModel_BJ, BayesCalib_BJ, BayesValid_BJ = stokesdarcy.run(params, couplingcond='BJ', - PCEEDMethod=PCEExpDesignMethod) + # PCEModel_BJ, BayesCalib_BJ, BayesValid_BJ = stokesdarcy.run(params, couplingcond='BJ', + # PCEEDMethod=PCEExpDesignMethod) # # # Load the objects # # with open('../outputs_ffpm-stokesdarcyBJ/PA_A_Bayesffpm-stokesdarcyBJ.pkl', 'rb') as input: @@ -271,8 +271,8 @@ if __name__ == "__main__": # # BayesValid_BJ = pickle.load(input) # Model stokesdarcy-ER - PCEModel_ER, BayesCalib_ER, BayesValid_ER = stokesdarcy.run(params, couplingcond='ER', - PCEEDMethod=PCEExpDesignMethod) + # PCEModel_ER, BayesCalib_ER, BayesValid_ER = stokesdarcy.run(params, couplingcond='ER', + # PCEEDMethod=PCEExpDesignMethod) # # Load the objects @@ -284,7 +284,7 @@ if __name__ == "__main__": # Model stokesdarcy-pnm PCEModel_PNM, BayesCalib_PNM, BayesValid_PNM = stokespnm.run(params, PCEEDMethod=PCEExpDesignMethod) - + sys.exit() # # Load the objects # with open('../outputs_ffpm-stokesdarcyER/PA_A_Bayesffpm-stokesdarcyER.pkl', 'rb') as input: # BayesCalib_PNM = pickle.load(input) diff --git a/BayesValidRox/tests/PA-A/ffpm_validation_stokespnm.py b/BayesValidRox/tests/PA-A/ffpm_validation_stokespnm.py index ea1f0d7ef..01f7b302c 100755 --- a/BayesValidRox/tests/PA-A/ffpm_validation_stokespnm.py +++ b/BayesValidRox/tests/PA-A/ffpm_validation_stokespnm.py @@ -199,9 +199,6 @@ def run(params, PCEEDMethod='normal'): #===================================================== PostPCE = PostProcessing(PCEModel) - # Plot to check validation visually. - PostPCE.validMetamodel(nValidSamples=3) - # Compute the moments and compare with the Monte-Carlo reference PostPCE.plotMoments(xlabel='Point ID', plotType='bar') diff --git a/BayesValidRox/tests/PA-A/ref_stokesdarcy.py b/BayesValidRox/tests/PA-A/ref_stokesdarcy.py index bd1759bb8..21fb2afd8 100755 --- a/BayesValidRox/tests/PA-A/ref_stokesdarcy.py +++ b/BayesValidRox/tests/PA-A/ref_stokesdarcy.py @@ -3,7 +3,8 @@ """ Created on Thu Aug 13 09:53:11 2020 -@author: farid +@author: Farid Mohammadi, M.Sc. + Email: farid.mohammadi@iws.uni-stuttgart.de """ import sys, os import numpy as np -- GitLab