sagemaker.train.remote_function.custom_file_filter#

SageMaker remote function client.

Functions

copy_workdir(dst[, custom_file_filter])

Copy the local working directory to the destination.

resolve_custom_file_filter_from_config_file([...])

Resolve the CustomFileFilter configuration from the config file.

Classes

CustomFileFilter(*[, ignore_name_patterns])

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: object

Configuration 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:

CustomFileFilter