Skip to content

Commit

Permalink
[doc] Add the reference to the fit_dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 authored and ravinkohli committed Dec 8, 2021
1 parent 03ac94a commit d7d05c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoPyTorch/evaluation/train_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ def _fit_and_predict(self, pipeline: BaseEstimator, fold: int, train_indices: Un

self.indices[fold] = ((train_indices, test_indices))

# See autoPyTorch/pipeline/components/base_component.py::autoPyTorchComponent for more details
# about fit_dictionary
X = {'train_indices': train_indices,
'val_indices': test_indices,
'split_id': fold,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ def get_tabular_preprocessers(X: Dict[str, Any]) -> Dict[str, List[BaseEstimator
Creates a dictionary with two keys,
numerical- containing list of numerical preprocessors
categorical- containing list of categorical preprocessors
Args:
X: fit dictionary
See autoPyTorch/pipeline/components/base_component.py::autoPyTorchComponent for more details
about fit_dictionary
Returns:
(Dict[str, List[BaseEstimator]]): dictionary with list of numerical and categorical preprocessors
"""
Expand Down
2 changes: 2 additions & 0 deletions autoPyTorch/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def get_device_from_fit_dictionary(X: Dict[str, Any]) -> torch.device:
Args:
X (Dict[str, Any]): A fit dictionary to control how the pipeline is fitted
See autoPyTorch/pipeline/components/base_component.py::autoPyTorchComponent for more details
about fit_dictionary
Returns:
torch.device: Device to be used for training/inference
Expand Down

0 comments on commit d7d05c8

Please sign in to comment.