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
740a3a0c
Commit
740a3a0c
authored
4 months ago
by
kohlhaasrebecca
Browse files
Options
Downloads
Patches
Plain Diff
Linting of PostProcessing
parent
3bba3962
No related branches found
No related tags found
1 merge request
!37
Fix/post processing
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/bayesvalidrox/post_processing/post_processing.py
+126
-182
126 additions, 182 deletions
src/bayesvalidrox/post_processing/post_processing.py
tests/test_PolynomialChaosEmulator.py
+14
-0
14 additions, 0 deletions
tests/test_PolynomialChaosEmulator.py
with
140 additions
and
182 deletions
src/bayesvalidrox/post_processing/post_processing.py
+
126
−
182
View file @
740a3a0c
This diff is collapsed.
Click to expand it.
tests/test_PolynomialChaosEmulator.py
+
14
−
0
View file @
740a3a0c
...
@@ -840,6 +840,20 @@ def test_calculate_moments_pca() -> None:
...
@@ -840,6 +840,20 @@ def test_calculate_moments_pca() -> None:
mm
.
calculate_moments
()
mm
.
calculate_moments
()
def
test_calculate_moments_verbose
()
->
None
:
"""
Calculate moments of a pce-surrogate with pca
"""
inp
=
Input
()
inp
.
add_marginals
()
inp
.
Marginals
[
0
].
dist_type
=
'
normal
'
inp
.
Marginals
[
0
].
parameters
=
[
0
,
1
]
mm
=
PCE
(
inp
)
mm
.
verbose
=
True
mm
.
fit
([[
0.2
],
[
0.8
]],
{
'
Z
'
:
[[
0.4
,
0.4
],
[
0.5
,
0.6
]]})
mm
.
calculate_moments
()
#%% Test PCE.update_metamodel
#%% Test PCE.update_metamodel
# TODO: taken from engine
# TODO: taken from engine
...
...
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