sagemaker.train.remote_function.custom_file_filter#
SageMaker remote function client.
Functions
|
Copy the local working directory to the destination. |
Resolve the CustomFileFilter configuration from the config file. |
Classes
|
Configuration that specifies how the local working directory should be packaged. |
- class sagemaker.train.remote_function.custom_file_filter.CustomFileFilter(*, ignore_name_patterns: List[str] | None = None)[source]#
Bases:
objectConfiguration that specifies how the local working directory should be packaged.
- property ignore_name_patterns#
Get the ignore name patterns.
- property workdir#
Get the working directory.
- sagemaker.train.remote_function.custom_file_filter.copy_workdir(dst: str, custom_file_filter: Callable[[str, List], List] | CustomFileFilter | None = None)[source]#
Copy the local working directory to the destination.
- Parameters:
dst (str) – destination path.
custom_file_filter (Union[Callable[[str, List], List], CustomFileFilter) – configuration that specifies how the local working directory should be packaged.
- sagemaker.train.remote_function.custom_file_filter.resolve_custom_file_filter_from_config_file(direct_input: Callable[[str, List], List] | CustomFileFilter | None = None, sagemaker_session=None) Callable[[str, List], List] | CustomFileFilter | None[source]#
Resolve the CustomFileFilter configuration from the config file.
- Parameters:
direct_input (Callable[[str, List], List], CustomFileFilter) – direct input from the user.
sagemaker_session (sagemaker.core.helper.session.Session) – sagemaker session.
- Returns:
- configuration that specifies how the local
working directory should be packaged.
- Return type: