quantlab.model.torch_training#
Training pieces a TorchModel head may pick for its hooks.
The data a head is fed (the training panel, Batch and the datasets)
lives in quantlab.model.torch_data. This module holds the pieces of a
head’s learning strategy:
cs_rank_norm,cs_zscoreanddrop_extremeare target transforms for a head’s_transform_target.masked_mseis a loss for a head’s_loss.TrainLossThresholdis MASTER’s stopping rule, a helper for a head’s stop hooks.
Everything a head picks is optional to use: the hooks may be written from scratch.
Classes
MASTER's stopping rule, for a head's stop hooks. |
Functions
Qlib's |
|
Z-score of one bar's |
|
Return the rows kept after dropping both tails of one label column. |
|
Mean squared error over the entries where |