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

[fix] Add output-option to check_reg_quality

Also added related PCE-tests
parent 3d9b0dfc
No related branches found
No related tags found
1 merge request!37Fix/post processing
......@@ -849,7 +849,11 @@ class PostProcessing:
return self.total_sobol
# -------------------------------------------------------------------------
<<<<<<< HEAD
def check_reg_quality(self, n_samples: int = 1000, samples=None, outputs: dict = None) -> None:
=======
def check_reg_quality(self, n_samples=1000, samples=None, outputs=None):
>>>>>>> 4281a0b3 ([fix] Add output-option to check_reg_quality)
"""
Checks the quality of the metamodel for single output models based on:
https://towardsdatascience.com/how-do-you-check-the-quality-of-your-regression-model-in-python-fa61759ff685
......@@ -877,7 +881,11 @@ class PostProcessing:
# Evaluate the original and the surrogate model
if outputs is None:
y_val = self._eval_model(samples, key_str='valid')
<<<<<<< HEAD
else:
=======
else:
>>>>>>> 4281a0b3 ([fix] Add output-option to check_reg_quality)
y_val = outputs
y_pce_val, _ = self.engine.eval_metamodel(samples=samples)
......
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