TSATraining¶
TSA (Temporal Self-Attention) model training step for PyTorch-based temporal attention models
SageMaker step type |
|
Node type |
internal (consumes upstream, produces downstream) |
Container entry point |
|
Interface file |
|
Compute¶
Compute kind |
|
SDK class |
|
Functionality¶
TSA (Temporal Self-Attention) training script for AFN Return Kickout model that: 1. Loads pre-processed training data from TSA preprocessing output (4 numpy arrays) 2. Builds temporal attention-based neural network model (OrderFeatureAttentionClassifier) 3. Supports distributed training with PyTorch DDP (DistributedDataParallel) 4. Trains model with configurable hyperparameters including focal loss support 5. Implements OneCycleLR learning rate scheduling 6. Saves training checkpoints periodically 7. Generates training loss plots for monitoring 8. Saves trained model with all artifacts following standard pattern (model.tar.gz) 9. Supports region-specific hyperparameters (NA, EU, FE) via REGION environment variable
Inputs (dependencies)¶
Input |
Type |
Required |
Compatible producers |
|---|---|---|---|
|
|
yes |
TSAPreprocessing, TemporalSequenceNormalization, TemporalFeatureEngineering, TabularPreprocessing, ProcessingStep, DataLoad |
|
|
no |
HyperparameterPrep, ProcessingStep |
Outputs¶
Output |
Type |
|---|---|
|
|
|
|
Consumers (downstream steps)¶
Steps that declare this step as a compatible input source:
Framework requirements¶
Package |
Version |
|---|---|
|
|
|
|
|
|
|
|
|
|