diff --git a/.coverage b/.coverage deleted file mode 100644 index 185c72e5c2ee0d1c882d5383eca0ec1638e34684..0000000000000000000000000000000000000000 Binary files a/.coverage and /dev/null differ diff --git a/.coverage.DESKTOP-ATMEKSV.12160.XuMTRtDx b/.coverage.DESKTOP-ATMEKSV.12160.XuMTRtDx deleted file mode 100644 index 7bbc0492e89f5b6036087acc5429a3437d52f490..0000000000000000000000000000000000000000 Binary files a/.coverage.DESKTOP-ATMEKSV.12160.XuMTRtDx and /dev/null differ diff --git a/.coverage.DESKTOP-ATMEKSV.12392.XcvrcPpx b/.coverage.DESKTOP-ATMEKSV.12392.XcvrcPpx deleted file mode 100644 index 81e53f831236a6e47a886ccb6403982ccf33b461..0000000000000000000000000000000000000000 Binary files a/.coverage.DESKTOP-ATMEKSV.12392.XcvrcPpx and /dev/null differ diff --git a/.coverage.DESKTOP-ATMEKSV.21188.XiwAGrAx b/.coverage.DESKTOP-ATMEKSV.21188.XiwAGrAx deleted file mode 100644 index e1f7e6f75f5aa9a7a33884193b67b7cc22082200..0000000000000000000000000000000000000000 Binary files a/.coverage.DESKTOP-ATMEKSV.21188.XiwAGrAx and /dev/null differ diff --git a/.coverage.DESKTOP-ATMEKSV.24596.XgBqmGkx b/.coverage.DESKTOP-ATMEKSV.24596.XgBqmGkx deleted file mode 100644 index 00020484238401dae7e558e5d5f97fb6fd041d2d..0000000000000000000000000000000000000000 Binary files a/.coverage.DESKTOP-ATMEKSV.24596.XgBqmGkx and /dev/null differ diff --git a/Outputs_Bayes_None_Calib/emcee_sampler.h5 b/Outputs_Bayes_None_Calib/emcee_sampler.h5 deleted file mode 100644 index 5f687b4869be7ca86bec96c8a797a2e33b6ffd55..0000000000000000000000000000000000000000 Binary files a/Outputs_Bayes_None_Calib/emcee_sampler.h5 and /dev/null differ diff --git a/Outputs_SeqPosteriorComparison/posterior/Z.npy b/Outputs_SeqPosteriorComparison/posterior/Z.npy deleted file mode 100644 index 8d89efa6714257ec2d867aa5eb95b7f23b915010..0000000000000000000000000000000000000000 Binary files a/Outputs_SeqPosteriorComparison/posterior/Z.npy and /dev/null differ diff --git a/src/bayesvalidrox/surrogate_models/exp_designs.py b/src/bayesvalidrox/surrogate_models/exp_designs.py index 4d719654b1b9ec03f45cf563d55f0d587907eb19..fa03fe17d96fb2c1f19546b7b72fb2fd6dd1c13a 100644 --- a/src/bayesvalidrox/surrogate_models/exp_designs.py +++ b/src/bayesvalidrox/surrogate_models/exp_designs.py @@ -278,24 +278,7 @@ class ExpDesigns(InputSpace): samples = chaospy.generate_samples(n_samples, domain=self.JDist, rule=sampling_method).T - # Transform samples to the original space - if transform: - self.init_param_space(max_pce_deg) - tr_samples = self.transform( - samples, - method=sampling_method - ) - if sampling_method == 'user' or not self.apce: - self.X = samples - self.X_tr = tr_samples - #return samples, tr_samples - else: - self.X = tr_samples - self.X_tr = samples - #return tr_samples, samples # TODO: why is this swapped here? - else: - self.X = samples - self.X_tr = None + self.X = samples def read_from_file(self, out_names): """ diff --git a/src/bayesvalidrox/surrogate_models/surrogate_models.py b/src/bayesvalidrox/surrogate_models/surrogate_models.py index ba488d09639e05c09212cafb32552968e2d03122..ca902f26bef0c45e8befb72ff67313ef09a77603 100644 --- a/src/bayesvalidrox/surrogate_models/surrogate_models.py +++ b/src/bayesvalidrox/surrogate_models/surrogate_models.py @@ -137,7 +137,7 @@ class MetaModel(): # Generate general warnings if self.apply_constraints or self.pce_reg_method.lower() == 'ols': - print('THere are no estimations of surrogate uncertainty available' + print('There are no estimations of surrogate uncertainty available' ' for the chosen regression options. This might lead to issues' ' in later steps.') @@ -151,6 +151,11 @@ class MetaModel(): if not hasattr(self, 'CollocationPoints'): raise AttributeError('Please provide samples to the metamodel before building it.') + + # Transform input samples + # TODO: this is probably not yet correct! Make 'method' variable + self.CollocationPoints = self.InputSpace.transform(self.CollocationPoints, method='user') + self.n_params = len(self.input_obj.Marginals)