Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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