Skip to content
Snippets Groups Projects
Commit 82b02122 authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

[fix] Added `meta_model_type` to MetaModel class and to InputSpace

parent f8531d7e
No related branches found
No related tags found
3 merge requests!59Remove old autosummary,!58Finalize release 2.0.0,!33Split of MetaModel into MetaModel and PCE/GPE classes
Pipeline #48450 failed
...@@ -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
......
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