From 90017fadf15d558fb2b5ab83383e9ff2bfd0c01a Mon Sep 17 00:00:00 2001 From: Paul-Saves Date: Thu, 17 Oct 2024 19:48:12 +0200 Subject: [PATCH] init zscale --- smt/utils/kriging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/smt/utils/kriging.py b/smt/utils/kriging.py index 605aa749f..6b3a38214 100644 --- a/smt/utils/kriging.py +++ b/smt/utils/kriging.py @@ -303,6 +303,7 @@ def gower_componentwise_distances( z_num_is_acting = z_is_acting[:, ~cat_features] num_is_decreed = is_decreed[~cat_features] num_bounds = design_space.get_num_bounds()[~cat_features, :] + Z_scale = 1 if num_bounds.shape[0] > 0: Z_offset = num_bounds[:, 0] Z_max = num_bounds[:, 1]