Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Change int to np.int32 for the ndarray dtype specification #371

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _get_args(self, X: Dict[str, Any]) -> Tuple[int, np.ndarray]:
num_numerical_columns = numerical_column_transformer.transform(
X_train[:, X['dataset_properties']['numerical_columns']]).shape[1]
num_input_features = np.zeros((num_numerical_columns + len(X['dataset_properties']['categorical_columns'])),
dtype=int)
dtype=np.int32)
categories = X['dataset_properties']['categories']

for i, category in enumerate(categories):
Expand Down
2 changes: 1 addition & 1 deletion autoPyTorch/pipeline/create_searchspace_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_match_array(
matches_dimensions = [len(choices) for choices in node_i_choices]
# Start by allowing every combination of nodes. Go through all
# combinations/pipelines and erase the illegal ones
matches = np.ones(matches_dimensions, dtype=int)
matches = np.ones(matches_dimensions, dtype=np.int32)

# TODO: Check if we need this, like are there combinations from the
# pipeline we should dynamically avoid?
Expand Down