Skip to content
Snippets Groups Projects
Commit b78fe797 authored by Farid Mohammadi's avatar Farid Mohammadi
Browse files

[PA-A] removed the validate PCEModel in the post processing step.

parent f36ace65
No related branches found
No related tags found
No related merge requests found
...@@ -262,8 +262,8 @@ if __name__ == "__main__": ...@@ -262,8 +262,8 @@ if __name__ == "__main__":
# # Model stokesdarcy-BJ # # Model stokesdarcy-BJ
PCEModel_BJ, BayesCalib_BJ, BayesValid_BJ = stokesdarcy.run(params, couplingcond='BJ', # PCEModel_BJ, BayesCalib_BJ, BayesValid_BJ = stokesdarcy.run(params, couplingcond='BJ',
PCEEDMethod=PCEExpDesignMethod) # PCEEDMethod=PCEExpDesignMethod)
# # # Load the objects # # # Load the objects
# # with open('../outputs_ffpm-stokesdarcyBJ/PA_A_Bayesffpm-stokesdarcyBJ.pkl', 'rb') as input: # # with open('../outputs_ffpm-stokesdarcyBJ/PA_A_Bayesffpm-stokesdarcyBJ.pkl', 'rb') as input:
...@@ -271,8 +271,8 @@ if __name__ == "__main__": ...@@ -271,8 +271,8 @@ if __name__ == "__main__":
# # BayesValid_BJ = pickle.load(input) # # BayesValid_BJ = pickle.load(input)
# Model stokesdarcy-ER # Model stokesdarcy-ER
PCEModel_ER, BayesCalib_ER, BayesValid_ER = stokesdarcy.run(params, couplingcond='ER', # PCEModel_ER, BayesCalib_ER, BayesValid_ER = stokesdarcy.run(params, couplingcond='ER',
PCEEDMethod=PCEExpDesignMethod) # PCEEDMethod=PCEExpDesignMethod)
# # Load the objects # # Load the objects
...@@ -284,7 +284,7 @@ if __name__ == "__main__": ...@@ -284,7 +284,7 @@ if __name__ == "__main__":
# Model stokesdarcy-pnm # Model stokesdarcy-pnm
PCEModel_PNM, BayesCalib_PNM, BayesValid_PNM = stokespnm.run(params, PCEEDMethod=PCEExpDesignMethod) PCEModel_PNM, BayesCalib_PNM, BayesValid_PNM = stokespnm.run(params, PCEEDMethod=PCEExpDesignMethod)
sys.exit()
# # Load the objects # # Load the objects
# with open('../outputs_ffpm-stokesdarcyER/PA_A_Bayesffpm-stokesdarcyER.pkl', 'rb') as input: # with open('../outputs_ffpm-stokesdarcyER/PA_A_Bayesffpm-stokesdarcyER.pkl', 'rb') as input:
# BayesCalib_PNM = pickle.load(input) # BayesCalib_PNM = pickle.load(input)
......
...@@ -199,9 +199,6 @@ def run(params, PCEEDMethod='normal'): ...@@ -199,9 +199,6 @@ def run(params, PCEEDMethod='normal'):
#===================================================== #=====================================================
PostPCE = PostProcessing(PCEModel) PostPCE = PostProcessing(PCEModel)
# Plot to check validation visually.
PostPCE.validMetamodel(nValidSamples=3)
# Compute the moments and compare with the Monte-Carlo reference # Compute the moments and compare with the Monte-Carlo reference
PostPCE.plotMoments(xlabel='Point ID', plotType='bar') PostPCE.plotMoments(xlabel='Point ID', plotType='bar')
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
""" """
Created on Thu Aug 13 09:53:11 2020 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 sys, os
import numpy as np import numpy as np
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment