8000 np.int identical to int by sStella2003 · Pull Request #1202 · scikit-optimize/scikit-optimize · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

np.int identical to int #1202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion skopt/space/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def inverse_transform(self, X):
raise ValueError("All values should be greater than 0.0")
X_orig = X * (self.high - self.low) + self.low
if self.is_int:
return np.round(X_orig).astype(np.int)
return np.round(X_orig).astype(int)
return X_orig


Expand Down
0