Skip to content

Commit

Permalink
update large values to be capped at 1e30
Browse files Browse the repository at this point in the history
paulsonak committed Dec 18, 2024
1 parent 58c454d commit d17bfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atomsci/ddm/pipeline/transformations.py
Original file line number Diff line number Diff line change
@@ -290,7 +290,7 @@ def transform_array(self, X, y, w, ids):
else:
X = np.nan_to_num(X * X_weight / self.X_stds)
# zero out large values, especially for out of range test data
X[np.abs(X) > 1e30] = 0
X[np.abs(X) > 1e30] = 1e30
if self.transform_y:
if not hasattr(self, 'move_mean') or self.move_mean:
y = np.nan_to_num((y - self.y_means) / self.y_stds)

0 comments on commit d17bfc4

Please sign in to comment.