Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
BayesValidRox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
inversemodeling
BayesValidRox
Commits
7321242e
Commit
7321242e
authored
4 years ago
by
faridm69
Browse files
Options
Downloads
Patches
Plain Diff
[tests][CO2Benchmark]moved the MC reference csv file.
parent
714048a6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BayesValidRox/tests/CO2Benchmark/MCrefs_MeanStd.csv
+11
-0
11 additions, 0 deletions
BayesValidRox/tests/CO2Benchmark/MCrefs_MeanStd.csv
BayesValidRox/tests/CO2Benchmark/Test_CO2Benchmark.py
+6
-6
6 additions, 6 deletions
BayesValidRox/tests/CO2Benchmark/Test_CO2Benchmark.py
with
17 additions
and
6 deletions
BayesValidRox/tests/CO2Benchmark/MCrefs_MeanStd.csv
0 → 100644
+
11
−
0
View file @
7321242e
Time [day],mean,std
0.00000000,352.34543838,147.70673591
11.11111111,325.59624221,63.06660731
22.22222222,323.22328049,56.04783533
33.33333333,321.86265388,52.03424212
44.44444444,320.93206540,49.23894134
55.55555556,320.23656565,47.11367608
66.66666667,319.68794574,45.41225784
77.77777778,319.23856977,44.00404241
88.88888889,318.85955214,42.81036827
100.00000000,318.53302616,41.77845688
This diff is collapsed.
Click to expand it.
BayesValidRox/tests/CO2Benchmark/Test_CO2Benchmark.py
+
6
−
6
View file @
7321242e
...
@@ -31,6 +31,7 @@ from BayesInference.BayesInference import BayesInference, Discrepancy
...
@@ -31,6 +31,7 @@ from BayesInference.BayesInference import BayesInference, Discrepancy
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
refDataDir
=
'
./refData/
'
#=====================================================
#=====================================================
#============= COMPUTATIONAL MODEL ================
#============= COMPUTATIONAL MODEL ================
#=====================================================
#=====================================================
...
@@ -53,8 +54,8 @@ if __name__ == "__main__":
...
@@ -53,8 +54,8 @@ if __name__ == "__main__":
Model
.
MeasurementFile
=
'
MeasuredPressure.csv
'
Model
.
MeasurementFile
=
'
MeasuredPressure.csv
'
# For Checking with the MonteCarlo refrence
# For Checking with the MonteCarlo refrence
#
Model.MCReference = True
Model
.
MCReference
=
True
#
Model.MCReferenceFile = 'MCrefs_MeanStd.csv'
Model
.
MCReferenceFile
=
'
MCrefs_MeanStd.csv
'
#=====================================================
#=====================================================
#========= PROBABILISTIC INPUT MODEL ==============
#========= PROBABILISTIC INPUT MODEL ==============
...
@@ -62,7 +63,6 @@ if __name__ == "__main__":
...
@@ -62,7 +63,6 @@ if __name__ == "__main__":
Inputs
=
Input
()
Inputs
=
Input
()
# Import the MC parameter sets (Input parameters)
# Import the MC parameter sets (Input parameters)
refDataDir
=
'
./refData/
'
filename
=
"
InputParameters.csv
"
filename
=
"
InputParameters.csv
"
MCParametersets
=
pd
.
read_csv
(
refDataDir
+
filename
)
MCParametersets
=
pd
.
read_csv
(
refDataDir
+
filename
)
...
@@ -217,9 +217,9 @@ if __name__ == "__main__":
...
@@ -217,9 +217,9 @@ if __name__ == "__main__":
PostPCE
.
PCEMoments
(
PCEModel
)
PostPCE
.
PCEMoments
(
PCEModel
)
# Plot Mean & Std for all Outputs
# Plot Mean & Std for all Outputs
#
PostPCE.MomentLineplot(PCE_Means = PostPCE.PCEMeans,
PostPCE
.
MomentLineplot
(
PCE_Means
=
PostPCE
.
PCEMeans
,
#
PCE_Stds = PostPCE.PCEStd,
PCE_Stds
=
PostPCE
.
PCEStd
,
#
x_label = 'Time [day]', SaveFig = True)
x_label
=
'
Time [day]
'
,
SaveFig
=
True
)
# Plot the evolution of the KLD,BME, and Modified LOOCV error
# Plot the evolution of the KLD,BME, and Modified LOOCV error
if
MetaModelOpts
.
ExpDesign
.
Method
==
'
sequential
'
:
if
MetaModelOpts
.
ExpDesign
.
Method
==
'
sequential
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment