You run 🤗 Transformers training scripts on SageMaker by creating HuggingFace Estimators. The Estimator handles end-to-end Amazon SageMaker training. The training of your script is invoked when you call fit on a HuggingFace Estimator. In the Estimator you define, which fine-tuning script should be used as entry_point, which instance_type. sklearn.preprocessing.FunctionTransformer¶ class sklearn.preprocessing. FunctionTransformer (func = None, inverse_func = None, *, validate = False, accept_sparse = False, check_inverse = True, feature_names_out = None, kw_args = None, inv_kw_args = None) [source] ¶. Constructs a transformer from an arbitrary callable. A FunctionTransformer forwards its X (and optionally y). SageMaker allows you to configure the instance within a VPC. This will be useful in case the Notebook instance needs to be accessed only within the VPC. Note that if the VPC is configured to access the internet, then the instance will inherit it. For this example, we choose No VPC and SageMaker will provide internet access directly to the instance.