MCPcopy Create free account

hub / github.com/BeierZhu/xERM / functions

Functions728 in github.com/BeierZhu/xERM

↓ 2 callersFunctionconv3x3
3x3 convolution with padding
xERM.RIDE.public/model/fb_resnets/RIDEResNet.py:23
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
xERM.RIDE.public/model/fb_resnets/EAResNet.py:21
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
xERM.RIDE.public/model/fb_resnets/ResNeXt.py:15
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
xERM.PC.public/models/ResNextFeature.py:14
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
xERM.PC.public/models/ResNetFeature.py:20
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
xERM.TDE.public/models/ResNextFeature.py:14
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
xERM.TDE.public/models/ResNetFeature.py:20
↓ 2 callersMethodeval_with_preds
(self, preds, labels)
xERM.PC.public/run_networks.py:894
↓ 2 callersMethodeval_with_preds
(self, preds, labels)
xERM.TDE.public/run_networks.py:778
↓ 2 callersMethodfrom_args
Initialize this class from some cli arguments. Used in train, test.
xERM.RIDE.public/parse_config.py:53
↓ 2 callersMethodgen_imbalanced_data
(self, img_num_per_cls)
xERM.PC.public/data/ImbalanceCIFAR.py:80
↓ 2 callersMethodget_balanced_weights
Calculate normalized generalized balanced weights
xERM.PC.public/data/ClassPrioritySampler.py:412
↓ 2 callersMethodget_balanced_weights
Calculate normalized generalized balanced weights
xERM.PC.public/data/MixedPrioritizedSampler.py:289
↓ 2 callersMethodget_balanced_weights
Calculate normalized generalized balanced weights
xERM.TDE.public/data/ClassPrioritySampler.py:412
↓ 2 callersMethodget_balanced_weights
Calculate normalized generalized balanced weights
xERM.TDE.public/data/MixedPrioritizedSampler.py:289
↓ 2 callersMethodget_cls_ratios
(self, tgt_weights)
xERM.PC.public/data/ClassPrioritySampler.py:374
↓ 2 callersMethodget_cls_ratios
(self, tgt_weights)
xERM.TDE.public/data/ClassPrioritySampler.py:374
↓ 2 callersFunctionget_data_transform
(split, rgb_mean, rbg_std, key='default')
xERM.PC.public/data/dataloader.py:41
↓ 2 callersFunctionget_data_transform
(split, rgb_mean, rbg_std, key='default')
xERM.TDE.public/data/dataloader.py:37
↓ 2 callersMethodget_final_output
(self, output_logits, target)
xERM.RIDE.public/model/loss.py:542
↓ 2 callersMethodget_final_output
(self, output_logits, target)
xERM.RIDE.public/model/loss.py:654
↓ 2 callersMethodget_manual_weights
(self, lam)
xERM.PC.public/data/ClassPrioritySampler.py:399
↓ 2 callersMethodget_manual_weights
(self, lam)
xERM.PC.public/data/MixedPrioritizedSampler.py:279
↓ 2 callersMethodget_manual_weights
(self, lam)
xERM.TDE.public/data/ClassPrioritySampler.py:399
↓ 2 callersMethodget_manual_weights
(self, lam)
xERM.TDE.public/data/MixedPrioritizedSampler.py:279
↓ 2 callersFunctionget_priority
(ptype, logits, labels)
xERM.PC.public/utils.py:188
↓ 2 callersFunctionget_priority
(ptype, logits, labels)
xERM.TDE.public/utils.py:247
↓ 2 callersMethodget_raw_total_weights
Get the per-example sampling weights return shape: [capacity]
xERM.PC.public/data/ClassPrioritySampler.py:122
↓ 2 callersMethodget_raw_total_weights
Get the per-example sampling weights return shape: [capacity]
xERM.TDE.public/data/ClassPrioritySampler.py:122
↓ 2 callersMethodget_total_weights
Get the per-example sampling weights return shape: [capacity]
xERM.PC.public/data/ClassPrioritySampler.py:114
↓ 2 callersMethodget_total_weights
Get the per-example sampling weights return shape: [capacity]
xERM.PC.public/data/MixedPrioritizedSampler.py:78
↓ 2 callersMethodget_total_weights
Get the per-example sampling weights return shape: [capacity]
xERM.TDE.public/data/ClassPrioritySampler.py:114
↓ 2 callersMethodget_total_weights
Get the per-example sampling weights return shape: [capacity]
xERM.TDE.public/data/MixedPrioritizedSampler.py:78
↓ 2 callersMethodget_weights
(self)
xERM.PC.public/data/ClassPrioritySampler.py:207
↓ 2 callersMethodget_weights
(self)
xERM.TDE.public/data/ClassPrioritySampler.py:207
↓ 2 callersMethodinit_optimizers
seperate backbone optimizer and classifier optimizer by Kaihua
xERM.PC.public/run_networks.py:161
↓ 2 callersMethodinit_optimizers
seperate backbone optimizer and classifier optimizer by Kaihua
xERM.TDE.public/run_networks.py:136
↓ 2 callersFunctionl2_loss
(input, target, reduction='mean')
xERM.PC.public/utils.py:242
↓ 2 callersFunctionl2_loss
(input, target, reduction='mean')
xERM.TDE.public/utils.py:301
↓ 2 callersMethodlog_cfg
(self, cfg)
xERM.PC.public/logger.py:27
↓ 2 callersMethodpred_expert_help
(self, input_part, i)
xERM.RIDE.public/model/ldam_drw_resnets/ea_resnet_cifar.py:194
↓ 2 callersMethodpred_expert_help
(self, input_part, i)
xERM.RIDE.public/model/fb_resnets/EAResNeXt.py:245
↓ 2 callersMethodpred_expert_help
(self, input_part, i)
xERM.RIDE.public/model/fb_resnets/EAResNet.py:241
↓ 2 callersMethodreset_adaptive_weights
(self, adaptive_weights)
xERM.PC.public/data/ClassPrioritySampler.py:68
↓ 2 callersMethodreset_adaptive_weights
(self, adaptive_weights)
xERM.TDE.public/data/ClassPrioritySampler.py:68
↓ 2 callersMethodreset_fixed_weights
Reset the manually designed weights and update the whole tree accordingly. @rescale: rescale the fixed_weights such that
xERM.PC.public/data/ClassPrioritySampler.py:71
↓ 2 callersMethodreset_fixed_weights
Reset the manually designed weights and update the whole tree accordingly. @rescale: rescale the fixed_weights such that
xERM.PC.public/data/MixedPrioritizedSampler.py:42
↓ 2 callersMethodreset_fixed_weights
Reset the manually designed weights and update the whole tree accordingly. @rescale: rescale the fixed_weights such that
xERM.TDE.public/data/ClassPrioritySampler.py:71
↓ 2 callersMethodreset_fixed_weights
Reset the manually designed weights and update the whole tree accordingly. @rescale: rescale the fixed_weights such that
xERM.TDE.public/data/MixedPrioritizedSampler.py:42
↓ 2 callersMethodsaving_feature_with_label_export
(self, save_name='eval_features_with_labels.pth')
xERM.TDE.public/run_networks.py:1076
↓ 2 callersMethodsaving_feature_with_label_init
(self)
xERM.TDE.public/run_networks.py:1055
↓ 2 callersMethodsaving_feature_with_label_update
(self, features, logits, labels)
xERM.TDE.public/run_networks.py:1070
↓ 2 callersMethodset_step
(self, step, mode='train')
xERM.RIDE.public/logger/visualization.py:40
↓ 2 callersMethodtrain
Full training logic
xERM.RIDE.public/base/base_trainer.py:70
↓ 2 callersMethodtrain
(self)
xERM.PC.public/run_networks.py:717
↓ 2 callersMethodtrain
(self)
xERM.TDE.public/run_networks.py:617
↓ 2 callersMethodupdate_backend_distribution
(self, tgt_weights)
xERM.PC.public/data/ClassPrioritySampler.py:474
↓ 2 callersMethodupdate_backend_distribution
(self, tgt_weights)
xERM.TDE.public/data/ClassPrioritySampler.py:474
↓ 2 callersMethodupdate_whole
Update the whole tree based on per-example sampling weights
xERM.PC.public/data/MixedPrioritizedSampler.py:59
↓ 2 callersMethodupdate_whole
Update the whole tree based on per-example sampling weights
xERM.TDE.public/data/MixedPrioritizedSampler.py:59
↓ 2 callersFunctionweighted_shot_acc
(preds, labels, ws, train_data, many_shot_thr=100, low_shot_thr=20)
xERM.TDE.public/utils.py:157
↓ 2 callersMethodwrite_summary
(self, split, step, **kargs)
xERM.PC.public/run_networks.py:83
↓ 1 callersFunctionF_measure
(preds, labels, theta=None)
xERM.PC.public/utils.py:129
↓ 1 callersFunctionF_measure
(preds, labels, theta=None)
xERM.TDE.public/utils.py:188
↓ 1 callersMethod__init__
(self, root, txt, transform=None)
xERM.RIDE.public/data_loader/imagenet_lt_data_loaders.py:44
↓ 1 callersMethod__init__
(self, root, txt, transform=None)
xERM.RIDE.public/data_loader/inaturalist_data_loaders.py:44
↓ 1 callersMethod__init__
(self)
xERM.PC.public/utils.py:372
↓ 1 callersMethod__init__
(self)
xERM.TDE.public/utils.py:28
↓ 1 callersMethod__len__
(self)
xERM.RIDE.public/data_loader/imagenet_lt_data_loaders.py:36
↓ 1 callersMethod__len__
(self)
xERM.RIDE.public/data_loader/cifar_data_loaders.py:86
↓ 1 callersMethod__len__
(self)
xERM.RIDE.public/data_loader/inaturalist_data_loaders.py:36
↓ 1 callersFunction_get_by_path
Access a nested object in tree by sequence of keys.
xERM.RIDE.public/parse_config.py:164
↓ 1 callersFunction_get_opt_name
(flags)
xERM.RIDE.public/parse_config.py:153
↓ 1 callersMethod_load_crt
Load from cRT pretrain :param cRT pretrain path to the checkpoint of cRT pretrain
xERM.RIDE.public/base/base_trainer.py:160
↓ 1 callersMethod_next_item
(self)
xERM.RIDE.public/data_loader/imagenet_lt_data_loaders.py:26
↓ 1 callersMethod_next_item
(self)
xERM.RIDE.public/data_loader/cifar_data_loaders.py:76
↓ 1 callersMethod_next_item
(self)
xERM.RIDE.public/data_loader/inaturalist_data_loaders.py:26
↓ 1 callersMethod_prepare_device
setup GPU device if available, move model into configured device
xERM.RIDE.public/base/base_trainer.py:116
↓ 1 callersMethod_progress
(self, batch_idx)
xERM.RIDE.public/trainer/trainer.py:333
↓ 1 callersMethod_resume_checkpoint
Resume from saved checkpoints :param resume_path: Checkpoint path to be resumed
xERM.RIDE.public/base/base_trainer.py:183
↓ 1 callersMethod_separate_part
(self, x, ind)
xERM.RIDE.public/model/ldam_drw_resnets/ride_resnet_cifar.py:166
↓ 1 callersMethod_separate_part
(self, x, ind)
xERM.RIDE.public/model/fb_resnets/RIDEResNeXt.py:198
↓ 1 callersMethod_separate_part
(self, x, ind)
xERM.RIDE.public/model/fb_resnets/RIDEResNet.py:200
↓ 1 callersFunction_set_by_path
Set a value in a nested object in tree by sequence of keys.
xERM.RIDE.public/parse_config.py:159
↓ 1 callersMethod_split_sampler
(self, split)
xERM.RIDE.public/base/base_data_loader.py:29
↓ 1 callersMethod_train_epoch
Training logic for an epoch :param epoch: Current epoch number
xERM.RIDE.public/base/base_trainer.py:62
↓ 1 callersFunction_update_config
(config, modification)
xERM.RIDE.public/parse_config.py:144
↓ 1 callersMethod_valid_epoch
Validate after training an epoch :param epoch: Integer, current training epoch. :return: A log that contains information abo
xERM.RIDE.public/trainer/trainer.py:273
↓ 1 callersMethodbatch_backward
(self, print_grad=False)
xERM.PC.public/run_networks.py:234
↓ 1 callersMethodbatch_backward
(self, print_grad=False)
xERM.TDE.public/run_networks.py:210
↓ 1 callersMethodbatch_loss
(self, labels)
xERM.PC.public/run_networks.py:251
↓ 1 callersMethodbatch_loss
(self, labels)
xERM.TDE.public/run_networks.py:227
↓ 1 callersMethodcal_xERM_weight
(self, logits_CF, logits_F, labels)
xERM.RIDE.public/model/loss.py:172
↓ 1 callersMethodcal_xERM_weight
(self, logits_CF, logits_F, labels)
xERM.RIDE.public/model/loss.py:729
↓ 1 callersMethodcausal_norm
(self, x, weight)
xERM.TDE.public/models/BaselineCosineClassifier.py:29
↓ 1 callersMethodcheck_ensemble
(self)
xERM.RIDE.public/trainer/trainer.py:208
↓ 1 callersFunctionclass_aware_sample_generator
(cls_iter, data_iter_list, n, num_samples_cls=1)
xERM.PC.public/data/ClassAwareSampler.py:45
↓ 1 callersFunctionclass_aware_sample_generator
(cls_iter, data_iter_list, n, num_samples_cls=1)
xERM.TDE.public/data/ClassAwareSampler.py:45
↓ 1 callersFunctionconvert
(json_file, txt_file)
xERM.TDE.public/data/iNaturalist18/gen_lists.py:22
↓ 1 callersMethoddebroadcast_sum
(self, per_example_info)
xERM.PC.public/data/ClassPrioritySampler.py:392
← previousnext →101–200 of 728, ranked by callers