MCPcopy Create free account

hub / github.com/AtlasAnalyticsLab/AdaFisher / types & classes

Types & classes90 in github.com/AtlasAnalyticsLab/AdaFisher

↓ 6 callersClassAverageMeter
Computes and stores the average and current value
Image_Classification/src/train.py:460
↓ 6 callersClassH_swish
hard swish
Image_Classification/src/models/mobilenetv3.py:44
↓ 5 callersClassResNet
Image_Classification/src/models/resnet_cifar.py:75
↓ 5 callersClassResNet
Analysis/models/resnet_cifar.py:74
↓ 4 callersClassCutout
Randomly mask out one or more patches from an image. @author: uoguelph-mlrg (https://github.com/uoguelph-mlrg/Cutout/blob/master/util/cutout
Image_Classification/src/utils/data.py:11
↓ 4 callersClassDenseNet
Image_Classification/src/models/densenet_cifar.py:41
↓ 4 callersClassStageModule
Image_Classification/src/models/swin.py:171
↓ 4 callersClassSwinTransformer
Image_Classification/src/models/swin.py:197
↓ 3 callersClassSGD
r"""Implements stochastic gradient descent (optionally with momentum). Nesterov momentum is based on the formula from `On the importance of i
optimizers/sgd.py:77
↓ 3 callersClassTransition
Image_Classification/src/models/densenet_cifar.py:27
↓ 3 callersClassWikitext2
Wikitext-2 dataset. This is a PyTorch dataset for the pre-processed Wikitext-2 dataset, containing about 2M words. This dataset will produce
Language_Model/utils/wikitext2.py:9
↓ 2 callersClassAdaFisherW
AdaFisherW Optimizer: An adaptive learning rate optimizer that leverages Fisher Information for parameter updates. The AdaFisherW optimizer extend
optimizers/AdaFisher.py:685
↓ 2 callersClassAdahessian
Implements Adahessian algorithm. It has been proposed in `ADAHESSIAN: An Adaptive Second Order Optimizer for Machine Learning`. Arguments:
optimizers/AdaHessian.py:6
↓ 2 callersClassAdamW
r"""Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable):
optimizers/AdamW.py:78
↓ 2 callersClassCCT
Image_Classification/src/models/cct.py:316
↓ 2 callersClassCyclicShift
Image_Classification/src/models/swin.py:9
↓ 2 callersClassDropPath
Image_Classification/src/models/cct.py:152
↓ 2 callersClassPreNorm
Image_Classification/src/models/swin.py:27
↓ 2 callersClassResidual
Image_Classification/src/models/swin.py:18
↓ 2 callersClassSEModule
SE Module Ref: https://github.com/moskomule/senet.pytorch/blob/master/senet/se_module.py
Image_Classification/src/models/mobilenetv3.py:57
↓ 2 callersClassSwinBlock
Image_Classification/src/models/swin.py:139
↓ 2 callersClass_enable_get_lr_call
optimizers/lr_scheduler.py:198
↓ 1 callersClassAdaFisher
AdaFisher Optimizer: An adaptive learning rate optimizer that leverages Fisher Information for parameter updates. This class AdaFisher optimiz
optimizers/AdaFisher.py:544
↓ 1 callersClassAdam
r"""Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable):
optimizers/Adam.py:78
↓ 1 callersClassAttention
Image_Classification/src/models/cct.py:90
↓ 1 callersClassBasicLayer
A basic Focal Transformer layer for one stage. Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input r
Image_Classification/src/models/focalnet.py:217
↓ 1 callersClassBlock
Language_Model/GPT1.py:238
↓ 1 callersClassBottleneck
The basic unit of MobileNetV3
Image_Classification/src/models/mobilenetv3.py:84
↓ 1 callersClassComputeCovA
optimizers/kfac_utils.py:89
↓ 1 callersClassComputeCovA
Analysis/optimizers/kfac_utils.py:89
↓ 1 callersClassComputeCovG
optimizers/kfac_utils.py:129
↓ 1 callersClassComputeCovG
Analysis/optimizers/kfac_utils.py:129
↓ 1 callersClassCompute_H_D
Computes diagonal elements of activation covariance matrices for different neural network layers.
optimizers/AdaFisher.py:92
↓ 1 callersClassCompute_H_bar
Computes the diagonal and the full matrix elements of the covariance matrix of activations ('H') for various layer types in a neural network.
Analysis/optimizers/AdaFisher_utils.py:80
↓ 1 callersClassCompute_S
Computes the diagonal and the full matrix elements of the gradient covariance matrix ('S') for various layer types in a neural network. This
Analysis/optimizers/AdaFisher_utils.py:214
↓ 1 callersClassCompute_S_D
Computes diagonal elements of gradient covariance matrices for different neural network layers.
optimizers/AdaFisher.py:213
↓ 1 callersClassCosineAnnealingLR
r"""Set the learning rate of each parameter group using a cosine annealing schedule, where :math:`\eta_{max}` is set to the initial lr and :ma
optimizers/lr_scheduler.py:510
↓ 1 callersClassCosineAnnealingWarmRestarts
r"""Set the learning rate of each parameter group using a cosine annealing schedule, where :math:`\eta_{max}` is set to the initial lr, :math:`T_{
optimizers/lr_scheduler.py:970
↓ 1 callersClassDenseNet
r"""Densenet-BC model class, based on `"Densely Connected Convolutional Networks" <https://arxiv.org/pdf/1608.06993.pdf>`_ Args: grow
Image_Classification/src/models/densenet.py:150
↓ 1 callersClassEarlyStop
Image_Classification/src/utils/early_stop.py:6
↓ 1 callersClassFeedForward
Image_Classification/src/models/swin.py:37
↓ 1 callersClassFocalModulation
Image_Classification/src/models/focalnet.py:34
↓ 1 callersClassFocalNet
r""" Focal Modulation Networks (FocalNets) Args: img_size (int | tuple(int)): Input image size. Default 224 patch_size (int | tup
Image_Classification/src/models/focalnet.py:376
↓ 1 callersClassFocalNetBlock
r""" Focal Modulation Network Block. Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input resulotion.
Image_Classification/src/models/focalnet.py:127
↓ 1 callersClassGPT1Embedding
Language_Model/utils/embeddings.py:5
↓ 1 callersClassH_sigmoid
hard sigmoid
Image_Classification/src/models/mobilenetv3.py:31
↓ 1 callersClassLinearLR
Decays the learning rate of each parameter group by linearly changing small multiplicative factor until the number of epoch reaches a pre-defined
optimizers/lr_scheduler.py:1312
↓ 1 callersClassMlp
Image_Classification/src/models/focalnet.py:15
↓ 1 callersClassMobileNetV3
Image_Classification/src/models/mobilenetv3.py:160
↓ 1 callersClassMultiHeadedAttention
Language_Model/GPT1.py:9
↓ 1 callersClassMultiStepLR
Decays the learning rate of each parameter group by gamma once the number of epoch reaches one of the milestones. Notice that such decay can h
optimizers/lr_scheduler.py:435
↓ 1 callersClassOneCycleLR
r"""Sets the learning rate of each parameter group according to the 1cycle learning rate policy. The 1cycle policy anneals the learning rate f
optimizers/lr_scheduler.py:1089
↓ 1 callersClassPatchEmbed
r""" Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
Image_Classification/src/models/focalnet.py:315
↓ 1 callersClassPatchMerging
Image_Classification/src/models/swin.py:156
↓ 1 callersClassResNet
Image_Classification/src/models/resnet.py:138
↓ 1 callersClassStepLR
Decays the learning rate of each parameter group by gamma every step_size epochs. Notice that such decay can happen simultaneously with other
optimizers/lr_scheduler.py:389
↓ 1 callersClassTokenizer
Image_Classification/src/models/cct.py:171
↓ 1 callersClassTrainingAgent
Image_Classification/src/train.py:90
↓ 1 callersClassTransformerClassifier
Image_Classification/src/models/cct.py:218
↓ 1 callersClassTransformerEncoderLayer
Inspired by torch.nn.TransformerEncoderLayer and rwightman's timm package.
Image_Classification/src/models/cct.py:120
↓ 1 callersClassWindowAttention
Image_Classification/src/models/swin.py:72
↓ 1 callersClass_DenseBlock
Image_Classification/src/models/densenet.py:117
↓ 1 callersClass_DenseLayer
Image_Classification/src/models/densenet.py:46
↓ 1 callersClass_Transition
Image_Classification/src/models/densenet.py:140
ClassAdaFisher
AdaFisher Optimizer: An adaptive learning rate optimizer that leverages Fisher Information for parameter updates. The AdaFisher optimizer exte
Analysis/optimizers/AdaFisher.py:13
ClassAdaFisherBackBone
The AdaFisherBackBone class serves as the base class for optimizers that adjust model parameters based on the Fisher Information Matrix to m
optimizers/AdaFisher.py:323
ClassAdahessian
Implements Adahessian algorithm. It has been proposed in `ADAHESSIAN: An Adaptive Second Order Optimizer for Machine Learning`. Arguments:
Analysis/optimizers/AdaHessian.py:6
ClassAdam
r"""Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable):
Analysis/optimizers/Adam.py:78
ClassBasicBlock
Image_Classification/src/models/resnet_cifar.py:14
ClassBasicBlock
Image_Classification/src/models/resnet.py:47
ClassBasicBlock
Analysis/models/resnet_cifar.py:13
ClassBottleneck
Image_Classification/src/models/resnet_cifar.py:43
ClassBottleneck
Image_Classification/src/models/densenet_cifar.py:9
ClassBottleneck
Image_Classification/src/models/resnet.py:89
ClassBottleneck
Analysis/models/resnet_cifar.py:42
ClassComputeMatGrad
optimizers/kfac_utils.py:40
ClassComputeMatGrad
Analysis/optimizers/kfac_utils.py:40
ClassCyclicLR
r"""Sets the learning rate of each parameter group according to cyclical learning rate policy (CLR). The policy cycles the learning rate betwe
optimizers/lr_scheduler.py:747
ClassExponentialLR
Decays the learning rate of each parameter group by gamma every epoch. When last_epoch=-1, sets initial lr as lr. Args: optimizer (Op
optimizers/lr_scheduler.py:481
ClassKFACOptimizer
optimizers/kfac.py:8
ClassKFACOptimizer
Analysis/optimizers/kfac.py:8
ClassLambdaLR
Sets the learning rate of each parameter group to the initial lr times a given function. When last_epoch=-1, sets initial lr as lr. Args:
optimizers/lr_scheduler.py:228
ClassMiniGPT1
Language_Model/GPT1.py:270
ClassMultiplicativeLR
Multiply the learning rate of each parameter group by the factor given in the specified function. When last_epoch=-1, sets initial lr as lr.
optimizers/lr_scheduler.py:310
ClassReduceLROnPlateau
Reduce learning rate when a metric has stopped improving. Models often benefit from reducing the learning rate by a factor of 2-10 once learni
optimizers/lr_scheduler.py:576
ClassSGD
r"""Implements stochastic gradient descent (optionally with momentum). Nesterov momentum is based on the formula from `On the importance of i
Analysis/optimizers/sgd.py:77
ClassSGDVec
r"""Implements stochastic gradient descent (optionally with momentum). Nesterov momentum is based on the formula from `On the importance of i
optimizers/sgd.py:192
ClassSGDVec
r"""Implements stochastic gradient descent (optionally with momentum). Nesterov momentum is based on the formula from `On the importance of i
Analysis/optimizers/sgd.py:192
Class_LRScheduler
optimizers/lr_scheduler.py:96
Class_enable_get_lr_call
optimizers/lr_scheduler.py:1069