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
82b02122
Commit
82b02122
authored
7 months ago
by
kohlhaasrebecca
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Added `meta_model_type` to MetaModel class and to InputSpace
parent
f8531d7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!59
Remove old autosummary
,
!58
Finalize release 2.0.0
,
!33
Split of MetaModel into MetaModel and PCE/GPE classes
Pipeline
#48450
failed
7 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bayesvalidrox/surrogate_models/surrogate_models.py
+4
-2
4 additions, 2 deletions
src/bayesvalidrox/surrogate_models/surrogate_models.py
with
4 additions
and
2 deletions
src/bayesvalidrox/surrogate_models/surrogate_models.py
+
4
−
2
View file @
82b02122
...
@@ -90,7 +90,8 @@ def _preprocessing_fit(fit_function):
...
@@ -90,7 +90,8 @@ def _preprocessing_fit(fit_function):
# Build the input space
# Build the input space
if
self
.
InputSpace
is
None
:
if
self
.
InputSpace
is
None
:
self
.
InputSpace
=
InputSpace
(
self
.
input_obj
)
print
(
self
.
meta_model_type
)
self
.
InputSpace
=
InputSpace
(
self
.
input_obj
,
self
.
meta_model_type
)
n_init_samples
=
X
.
shape
[
0
]
n_init_samples
=
X
.
shape
[
0
]
self
.
InputSpace
.
n_init_samples
=
n_init_samples
self
.
InputSpace
.
n_init_samples
=
n_init_samples
# TODO: _pce_deg not necessarily available, generalize this!
# TODO: _pce_deg not necessarily available, generalize this!
...
@@ -379,12 +380,13 @@ class MetaModel:
...
@@ -379,12 +380,13 @@ class MetaModel:
"""
"""
def
__init__
(
self
,
input_obj
,
bootstrap_method
=
'
fast
'
,
def
__init__
(
self
,
input_obj
,
meta_model_type
=
''
,
bootstrap_method
=
'
fast
'
,
n_bootstrap_itrs
=
1
,
dim_red_method
=
'
no
'
,
is_gaussian
=
False
,
n_bootstrap_itrs
=
1
,
dim_red_method
=
'
no
'
,
is_gaussian
=
False
,
verbose
=
False
):
verbose
=
False
):
# Inputs
# Inputs
self
.
input_obj
=
input_obj
self
.
input_obj
=
input_obj
self
.
meta_model_type
=
meta_model_type
self
.
bootstrap_method
=
bootstrap_method
self
.
bootstrap_method
=
bootstrap_method
self
.
n_bootstrap_itrs
=
n_bootstrap_itrs
self
.
n_bootstrap_itrs
=
n_bootstrap_itrs
self
.
dim_red_method
=
dim_red_method
self
.
dim_red_method
=
dim_red_method
...
...
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