composer.algorithms
We describe programmatic modifications to the model or training process as "algorithms." Examples include :pysmoothing the labels <composer.algorithms.label_smoothing.LabelSmoothing>
and adding :pySqueeze-and-Excitation <composer.algorithms.squeeze_excite.SqueezeExcite>
blocks, among many others.
Algorithms can be used in two ways:
- Using :py
~composer.algorithm.Algorithm
objects. These objects provide callbacks to be run in the training loop. - Using algorithm-specific functions and classes, such as :py
smooth_labels <composer.algorithms.label_smoothing.smooth_labels>
or :py~composer.algorithms.squeeze_excite.SqueezeExcite2d
.
The former are the easier to compose together, since they all have the same public interface and work automatically with the Composer :py~composer.trainer.Trainer
. The latter are easier to integrate piecemeal into an existing codebase.
See :py~composer.algorithms.Algorithm
for more information.
The following algorithms are available in Composer:
~alibi.Alibi ~augmix.AugMix ~blurpool.BlurPool ~channels_last.ChannelsLast ~colout.ColOut ~cutout.CutOut ~ghost_batchnorm.GhostBatchNorm ~label_smoothing.LabelSmoothing ~layer_freezing.LayerFreezing ~mixup.MixUp ~progressive_resizing.ProgressiveResizing ~randaugment.RandAugment ~sam.SAM ~scale_schedule.ScaleSchedule ~selective_backprop.SelectiveBackprop ~squeeze_excite.SqueezeExcite ~stochastic_depth.StochasticDepth ~swa.SWA
composer.algorithms.alibi.Alibi
composer.algorithms.alibi.AlibiHparams
composer.algorithms.alibi.apply_alibi
composer.algorithms.augmix.AugMix
composer.algorithms.augmix.AugMixHparams
composer.algorithms.augmix.augment_and_mix
composer.algorithms.blurpool.BlurPool
composer.algorithms.blurpool.BlurPoolHparams
composer.algorithms.blurpool.BlurConv2d
composer.algorithms.blurpool.BlurMaxPool2d
composer.algorithms.blurpool.BlurPool2d
composer.algorithms.blurpool.blur_2d
composer.algorithms.blurpool.apply_blurpool
composer.algorithms.channels_last.ChannelsLast
composer.algorithms.channels_last.ChannelsLastHparams
composer.algorithms.colout.ColOut
composer.algorithms.colout.ColOutHparams
composer.algorithms.colout.colout
composer.algorithms.cutout.CutOut
composer.algorithms.cutout.CutOutHparams
composer.algorithms.cutout.cutout
composer.algorithms.ghost_batchnorm.GhostBatchNorm
composer.algorithms.ghost_batchnorm.GhostBatchNormHparams
composer.algorithms.ghost_batchnorm.apply_ghost_batchnorm
composer.algorithms.label_smoothing.LabelSmoothing
composer.algorithms.label_smoothing.LabelSmoothingHparams
composer.algorithms.label_smoothing.smooth_labels
composer.algorithms.layer_freezing.LayerFreezing
composer.algorithms.layer_freezing.LayerFreezingHparams
composer.algorithms.layer_freezing.freeze_layers
composer.algorithms.mixup.MixUp
composer.algorithms.mixup.MixUpHparams
composer.algorithms.mixup.mixup_batch
composer.algorithms.progressive_resizing.ProgressiveResizing
composer.algorithms.progressive_resizing.ProgressiveResizingHparams
composer.algorithms.progressive_resizing.resize_inputs
composer.algorithms.randaugment.RandAugment
composer.algorithms.randaugment.RandAugmentHparams
composer.algorithms.randaugment.randaugment
composer.algorithms.seq_length_warmup
composer.algorithms.seq_length_warmup.SeqLengthWarmup
composer.algorithms.seq_length_warmup.SeqLengthWarmupHparams
composer.algorithms.seq_length_warmup
composer.algorithms.seq_length_warmup.apply_seq_length_warmup
composer.algorithms.sam.SAM
composer.algorithms.sam.SAMHparams
composer.algorithms.scale_schedule.ScaleSchedule
composer.algorithms.scale_schedule.ScaleScheduleHparams
composer.algorithms.scale_schedule.scale_scheduler
composer.algorithms.selective_backprop.SelectiveBackprop
composer.algorithms.selective_backprop.SelectiveBackpropHparams
composer.algorithms.squeeze_excite.SqueezeExcite
composer.algorithms.squeeze_excite.SqueezeExciteHparams
composer.algorithms.squeeze_excite.SqueezeExcite2d
composer.algorithms.squeeze_excite.SqueezeExciteConv2d
composer.algorithms.squeeze_excite.apply_se
composer.algorithms.stochastic_depth.StochasticDepth
composer.algorithms.stochastic_depth.StochasticDepthHparams
composer.algorithms.stochastic_depth.StochasticBottleneck
composer.algorithms.stochastic_depth.apply_stochastic_depth
composer.algorithms.swa.SWA
composer.algorithms.swa.SWAHparams