Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AtlasAnalyticsLab/AdaFisher
/ types & classes
Types & classes
90 in github.com/AtlasAnalyticsLab/AdaFisher
⨍
Functions
413
◇
Types & classes
90
↓ 6 callers
Class
AverageMeter
Computes and stores the average and current value
Image_Classification/src/train.py:460
↓ 6 callers
Class
H_swish
hard swish
Image_Classification/src/models/mobilenetv3.py:44
↓ 5 callers
Class
ResNet
Image_Classification/src/models/resnet_cifar.py:75
↓ 5 callers
Class
ResNet
Analysis/models/resnet_cifar.py:74
↓ 4 callers
Class
Cutout
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 callers
Class
DenseNet
Image_Classification/src/models/densenet_cifar.py:41
↓ 4 callers
Class
StageModule
Image_Classification/src/models/swin.py:171
↓ 4 callers
Class
SwinTransformer
Image_Classification/src/models/swin.py:197
↓ 3 callers
Class
SGD
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 callers
Class
Transition
Image_Classification/src/models/densenet_cifar.py:27
↓ 3 callers
Class
Wikitext2
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 callers
Class
AdaFisherW
AdaFisherW Optimizer: An adaptive learning rate optimizer that leverages Fisher Information for parameter updates. The AdaFisherW optimizer extend
optimizers/AdaFisher.py:685
↓ 2 callers
Class
Adahessian
Implements Adahessian algorithm. It has been proposed in `ADAHESSIAN: An Adaptive Second Order Optimizer for Machine Learning`. Arguments:
optimizers/AdaHessian.py:6
↓ 2 callers
Class
AdamW
r"""Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable):
optimizers/AdamW.py:78
↓ 2 callers
Class
CCT
Image_Classification/src/models/cct.py:316
↓ 2 callers
Class
CyclicShift
Image_Classification/src/models/swin.py:9
↓ 2 callers
Class
DropPath
Image_Classification/src/models/cct.py:152
↓ 2 callers
Class
PreNorm
Image_Classification/src/models/swin.py:27
↓ 2 callers
Class
Residual
Image_Classification/src/models/swin.py:18
↓ 2 callers
Class
SEModule
SE Module Ref: https://github.com/moskomule/senet.pytorch/blob/master/senet/se_module.py
Image_Classification/src/models/mobilenetv3.py:57
↓ 2 callers
Class
SwinBlock
Image_Classification/src/models/swin.py:139
↓ 2 callers
Class
_enable_get_lr_call
optimizers/lr_scheduler.py:198
↓ 1 callers
Class
AdaFisher
AdaFisher Optimizer: An adaptive learning rate optimizer that leverages Fisher Information for parameter updates. This class AdaFisher optimiz
optimizers/AdaFisher.py:544
↓ 1 callers
Class
Adam
r"""Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable):
optimizers/Adam.py:78
↓ 1 callers
Class
Attention
Image_Classification/src/models/cct.py:90
↓ 1 callers
Class
BasicLayer
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 callers
Class
Block
Language_Model/GPT1.py:238
↓ 1 callers
Class
Bottleneck
The basic unit of MobileNetV3
Image_Classification/src/models/mobilenetv3.py:84
↓ 1 callers
Class
ComputeCovA
optimizers/kfac_utils.py:89
↓ 1 callers
Class
ComputeCovA
Analysis/optimizers/kfac_utils.py:89
↓ 1 callers
Class
ComputeCovG
optimizers/kfac_utils.py:129
↓ 1 callers
Class
ComputeCovG
Analysis/optimizers/kfac_utils.py:129
↓ 1 callers
Class
Compute_H_D
Computes diagonal elements of activation covariance matrices for different neural network layers.
optimizers/AdaFisher.py:92
↓ 1 callers
Class
Compute_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 callers
Class
Compute_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 callers
Class
Compute_S_D
Computes diagonal elements of gradient covariance matrices for different neural network layers.
optimizers/AdaFisher.py:213
↓ 1 callers
Class
CosineAnnealingLR
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 callers
Class
CosineAnnealingWarmRestarts
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 callers
Class
DenseNet
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 callers
Class
EarlyStop
Image_Classification/src/utils/early_stop.py:6
↓ 1 callers
Class
FeedForward
Image_Classification/src/models/swin.py:37
↓ 1 callers
Class
FocalModulation
Image_Classification/src/models/focalnet.py:34
↓ 1 callers
Class
FocalNet
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 callers
Class
FocalNetBlock
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 callers
Class
GPT1Embedding
Language_Model/utils/embeddings.py:5
↓ 1 callers
Class
H_sigmoid
hard sigmoid
Image_Classification/src/models/mobilenetv3.py:31
↓ 1 callers
Class
LinearLR
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 callers
Class
Mlp
Image_Classification/src/models/focalnet.py:15
↓ 1 callers
Class
MobileNetV3
Image_Classification/src/models/mobilenetv3.py:160
↓ 1 callers
Class
MultiHeadedAttention
Language_Model/GPT1.py:9
↓ 1 callers
Class
MultiStepLR
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 callers
Class
OneCycleLR
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 callers
Class
PatchEmbed
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 callers
Class
PatchMerging
Image_Classification/src/models/swin.py:156
↓ 1 callers
Class
ResNet
Image_Classification/src/models/resnet.py:138
↓ 1 callers
Class
StepLR
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 callers
Class
Tokenizer
Image_Classification/src/models/cct.py:171
↓ 1 callers
Class
TrainingAgent
Image_Classification/src/train.py:90
↓ 1 callers
Class
TransformerClassifier
Image_Classification/src/models/cct.py:218
↓ 1 callers
Class
TransformerEncoderLayer
Inspired by torch.nn.TransformerEncoderLayer and rwightman's timm package.
Image_Classification/src/models/cct.py:120
↓ 1 callers
Class
WindowAttention
Image_Classification/src/models/swin.py:72
↓ 1 callers
Class
_DenseBlock
Image_Classification/src/models/densenet.py:117
↓ 1 callers
Class
_DenseLayer
Image_Classification/src/models/densenet.py:46
↓ 1 callers
Class
_Transition
Image_Classification/src/models/densenet.py:140
Class
AdaFisher
AdaFisher Optimizer: An adaptive learning rate optimizer that leverages Fisher Information for parameter updates. The AdaFisher optimizer exte
Analysis/optimizers/AdaFisher.py:13
Class
AdaFisherBackBone
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
Class
Adahessian
Implements Adahessian algorithm. It has been proposed in `ADAHESSIAN: An Adaptive Second Order Optimizer for Machine Learning`. Arguments:
Analysis/optimizers/AdaHessian.py:6
Class
Adam
r"""Implements Adam algorithm. It has been proposed in `Adam: A Method for Stochastic Optimization`_. Arguments: params (iterable):
Analysis/optimizers/Adam.py:78
Class
BasicBlock
Image_Classification/src/models/resnet_cifar.py:14
Class
BasicBlock
Image_Classification/src/models/resnet.py:47
Class
BasicBlock
Analysis/models/resnet_cifar.py:13
Class
Bottleneck
Image_Classification/src/models/resnet_cifar.py:43
Class
Bottleneck
Image_Classification/src/models/densenet_cifar.py:9
Class
Bottleneck
Image_Classification/src/models/resnet.py:89
Class
Bottleneck
Analysis/models/resnet_cifar.py:42
Class
ComputeMatGrad
optimizers/kfac_utils.py:40
Class
ComputeMatGrad
Analysis/optimizers/kfac_utils.py:40
Class
CyclicLR
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
Class
ExponentialLR
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
Class
KFACOptimizer
optimizers/kfac.py:8
Class
KFACOptimizer
Analysis/optimizers/kfac.py:8
Class
LambdaLR
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
Class
MiniGPT1
Language_Model/GPT1.py:270
Class
MultiplicativeLR
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
Class
ReduceLROnPlateau
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
Class
SGD
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
Class
SGDVec
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
Class
SGDVec
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