MCPcopy Create free account

hub / github.com/DLLXW/data-science-competition / functions

Functions3,531 in github.com/DLLXW/data-science-competition

↓ 8 callersFunctionclean_text
Remove new lines and multiple spaces and adjust end of sentence dot.
heywhale/LM-Pretrain-Finetune/pretrain/tasks/data_utils.py:22
↓ 8 callersFunctionfile_size
(path)
else/Chick-Counting/detect/utils/general.py:180
↓ 8 callersFunctionfitness
(k)
tianchi/2021-Guangdong-Competition/yolov5/utils/utils.py:740
↓ 8 callersMethodget
Retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [idx] but get
heywhale/LM-Pretrain-Finetune/pretrain/megatron/data/indexed_dataset.py:500
↓ 8 callersFunctionload_or_initialize_parameters
(args, model)
else/天马杯--AI+z智能质检/code/run_classifier.py:85
↓ 8 callersFunctionpretrain
Main training program. This function will run the followings in the order provided: 1) initialize Megatron. 2) setup model, optim
heywhale/LM-Pretrain-Finetune/pretrain/megatron/training.py:64
↓ 8 callersFunctionprint_rank_last
If distributed is initialized, print only on last rank.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/__init__.py:50
↓ 8 callersFunctionsave_checkpoint
Save a model checkpoint.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/checkpointing.py:124
↓ 8 callersFunctionscale_coords
(img1_shape, coords, img0_shape, ratio_pad=None)
else/Chick-Counting/detect/utils/general.py:581
↓ 8 callersMethodstep
(self, closure=None)
else/Chick-Counting/counting/utils/ranger.py:75
↓ 8 callersMethodtokenize
(self, text)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/tokenizer/tokenizer.py:138
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
heywhale/LM-Pretrain-Finetune/finetune/modeling_cpt.py:165
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/model/modeling_bart.py:182
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/model/modeling_cpt.py:185
↓ 7 callersFunctioncheck_img_size
(imgsz, s=32, floor=0)
else/Chick-Counting/detect/utils/general.py:269
↓ 7 callersFunctioncheck_suffix
(file='yolov5s.pt', suffix=('.pt',), msg='')
else/Chick-Counting/detect/utils/general.py:295
↓ 7 callersFunctioncnt_result
(x)
datafountain/CCF2020-非法集资/utils/helpers.py:79
↓ 7 callersFunctiondata_file_path
(prefix_path)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/data/indexed_dataset.py:115
↓ 7 callersFunctionget_language_model
Build language model and return along with the key to save.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/model/language_model.py:46
↓ 7 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path
tianchi/高德地图/mmdetectionForGaode/setup.py:50
↓ 7 callersFunctionprint_datetime
Note that this call will sync across all ranks.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/training.py:57
↓ 7 callersMethodtrain
(self, x_train, y_train)
datafountain/CCF2020-非法集资/utils/helpers.py:10
↓ 7 callersFunctionxywh2xyxy
(x)
else/Chick-Counting/detect/utils/general.py:515
↓ 6 callersMethod__init__
(self, c1, c2, n=1, shortcut=True, g=1, e=0.5)
tianchi/2021-Guangdong-Competition/yolov5/models/experimental.py:22
↓ 6 callersMethod__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-6, weight_decay=0.0, correct_bias=True)
else/天马杯--AI+z智能质检/code/uer/utils/optimizers.py:202
↓ 6 callersFunction_ensure_var_is_not_initialized
Make sure the input variable is not None.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/global_vars.py:178
↓ 6 callersMethodadd
Track the rng state.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/mpu/random.py:160
↓ 6 callersFunctionbatch_loader
(batch_size, src, tgt, seg, soft_tgt=None)
else/天马杯--AI+z智能质检/code/run_classifier.py:108
↓ 6 callersFunctionbert_position_ids
(token_ids)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/model/bert_model.py:49
↓ 6 callersMethodbox_label
(self, box, label='', color=(128, 128, 128), txt_color=(255, 255, 255))
else/Chick-Counting/detect/utils/plots.py:81
↓ 6 callersFunctionbuild_train_valid_test_datasets
(data_prefix, data_impl, splits_string, train_valid_test_num_samples,
heywhale/LM-Pretrain-Finetune/pretrain/megatron/data/dataset_utils.py:416
↓ 6 callersFunctioncheck_dataset
(data, autodownload=True)
else/Chick-Counting/detect/utils/general.py:333
↓ 6 callersFunctioneval_score
(y_test, y_pre)
datafountain/CCF2020-非法集资/utils/helpers.py:56
↓ 6 callersFunctionevaluate
(args, dataset, print_confusion_matrix=False)
else/天马杯--AI+z智能质检/code/run_classifier.py:192
↓ 6 callersMethodfit
(self, x=None, y=None, batch_size=None, epochs=1, verbose=1, initial_epoch=0, validation_split=0.,
else/wechat2021/deep_model.py:14
↓ 6 callersFunctionfitness
(x)
else/Chick-Counting/detect/utils/metrics.py:15
↓ 6 callersMethodfork
Fork the cuda rng state, perform operations, and exit with the original state.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/mpu/random.py:178
↓ 6 callersMethodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/tokenizer/gpt2_tokenization.py:98
↓ 6 callersFunctionget_and_check
(root, name, length)
tianchi/2021-Guangdong-Competition/draw_bbox.py:18
↓ 6 callersFunctionget_and_check
(root, name, length)
tianchi/2021-Guangdong-Competition/make_slice_voc.py:32
↓ 6 callersFunctionget_checkpoint_name
A unified checkpoint name.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/checkpointing.py:83
↓ 6 callersFunctionget_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/checkpointing.py:103
↓ 6 callersFunctionindex_file_path
(prefix_path)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/data/indexed_dataset.py:111
↓ 6 callersFunctionis_last_rank
()
heywhale/LM-Pretrain-Finetune/pretrain/megatron/__init__.py:46
↓ 6 callersFunctionk_fold_serachParmaters
(model, train_val_data, train_val_kind)
datafountain/CCF2020-非法集资/models/stacking.py:21
↓ 6 callersFunctionload_checkpoint
Load a model checkpoint and return the iteration. strict (bool): whether to strictly enforce that the keys in :attr:`state_dict` of the ch
heywhale/LM-Pretrain-Finetune/pretrain/megatron/checkpointing.py:262
↓ 6 callersFunctionload_model
(model, model_path)
else/天马杯--AI+z智能质检/code/uer/model_loader.py:5
↓ 6 callersFunctionload_model
(bert_name,weight_path)
heywhale/gaiic2022/code/qyl_online/infer_bert_tuwen_merge.py:12
↓ 6 callersMethodload_state_dict
Load the state dicts of each of the models
heywhale/LM-Pretrain-Finetune/pretrain/megatron/model/biencoder_model.py:132
↓ 6 callersFunctionmask_seq
(src, vocab, span_masking, span_geo_prob, span_max_length)
else/天马杯--AI+z智能质检/code/uer/utils/data.py:11
↓ 6 callersFunctionnon_max_suppression
Runs Non-Maximum Suppression (NMS) on inference results Returns: list of detections, on (n,6) tensor per image [xyxy, conf, cls]
else/Chick-Counting/detect/utils/general.py:609
↓ 6 callersMethodpad
(self)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/tokenizer/tokenizer.py:167
↓ 6 callersMethodpredict
pre_pred:已经得到的前一个预测结果 这里要将原始已经得到的预测结果逐个加入原始测试集
else/招商银行2021FinTech/lgb_day_timeSeries.py:120
↓ 6 callersFunctiontrain_model
(args, model, optimizer, scheduler, src_batch, tgt_batch, seg_batch, soft_tgt_batch=None)
else/天马杯--AI+z智能质检/code/run_classifier.py:167
↓ 6 callersMethodupdate
(self, val, n=1)
else/satellite_image_segmentation/swin_unet_code/utils/utils.py:15
↓ 6 callersMethodupdate
(self, consumed_samples, consistency_check)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/microbatches.py:87
↓ 6 callersFunctionvgg19
VGG 19-layer model (configuration "E") model pre-trained on ImageNet
else/Chick-Counting/counting/models/vgg.py:49
↓ 5 callersMethod__init__
(self, in_features, out_features, m=0.50, ls_eps=0, theta_zero=math.pi/4)
huawei/DIGIX2020校园大赛图像检索/modeling/metric_learning.py:14
↓ 5 callersMethod__init__
(self, c1, c2, k=(5, 9, 13))
tianchi/2021-Guangdong-Competition/yolov5/models/common.py:67
↓ 5 callersMethod__init__
(self, block, layers)
tianchi/高德地图/classfiyForGaoDe/models/resnet.py:226
↓ 5 callersFunction_set_cuda_rng_state
Sets the random number generator state of the current GPU. Argumentss: new_state (torch.ByteTensor): The desired state This function
heywhale/LM-Pretrain-Finetune/pretrain/megatron/mpu/random.py:71
↓ 5 callersFunctionbackward_step
Backward step through passed-in output tensor. If last stage, output_tensor_grad is None, otherwise gradient of loss with respect to stage's
heywhale/LM-Pretrain-Finetune/pretrain/megatron/schedules.py:67
↓ 5 callersFunctionbox
(lonrange, latrange)
tianchi/2021-AI-Earth/utils_new.py:70
↓ 5 callersFunctionbox
(lonrange, latrange)
tianchi/2021-AI-Earth/docker_submit_cnnlstm/utils_new.py:70
↓ 5 callersFunctionbuild_model
Build universial encoder representations models. The combinations of different embedding, encoder, and target layers yield pretrained mo
else/天马杯--AI+z智能质检/code/uer/model_builder.py:24
↓ 5 callersFunctionbuild_tokenizer
Initialize tokenizer.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/tokenizer/tokenizer.py:25
↓ 5 callersFunctioncheck_yaml
(file, suffix=('.yaml', '.yml'))
else/Chick-Counting/detect/utils/general.py:306
↓ 5 callersFunctioncompute_ngrams_insert_dict
(args, text, ngrams)
heywhale/LM-Pretrain-Finetune/pretrain/tools/openwebtext/filter_ngrams.py:194
↓ 5 callersFunctionconv3x3
(in_planes, out_planes, stride=1, dilation=1)
huawei/DIGIX2020校园大赛图像检索/modeling/resnet_csail.py:51
↓ 5 callersFunctionconv_bn
(inp, oup, kernel, stride, padding=1)
tianchi/CVPR2021-PIC-Challenge/networks/pfld.py:16
↓ 5 callersMethoddisplay
(self, pprint=False, show=False, save=False, crop=False, render=False, save_dir=Path(''))
else/Chick-Counting/detect/models/common.py:378
↓ 5 callersFunctiondivide
Ensure that numerator is divisible by the denominator and return the division value.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/mpu/utils.py:26
↓ 5 callersFunctionevaluate_and_print_results
Helper function to evaluate and dump results on screen.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/training.py:771
↓ 5 callersFunctionexp_t
Compute exp_t for `u'.
kaggle/Cassava Leaf Disease Classification/loss/bi_tempered_loss.py:14
↓ 5 callersFunctionforward_step
Forward step for passed-in model. If first stage, input tensor is obtained from data_iterator, otherwise passed-in input_tensor is used.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/schedules.py:43
↓ 5 callersFunctiongelu
(x)
else/天马杯--AI+z智能质检/code/uer/utils/act_fun.py:5
↓ 5 callersFunctionget_cuda_rng_tracker
Get cuda rng tracker.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/mpu/random.py:202
↓ 5 callersMethodget_input_embeddings
(self)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/model/modeling_cpt.py:859
↓ 5 callersFunctionget_model
Build the model.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/training.py:194
↓ 5 callersFunctionget_samples_mapping
Get a list that maps a sample index to a starting sentence index, end sentence index, and length
heywhale/LM-Pretrain-Finetune/pretrain/megatron/data/dataset_utils.py:651
↓ 5 callersFunctionimg2label_paths
(img_paths)
else/Chick-Counting/detect/utils/datasets.py:370
↓ 5 callersFunctioninitialize_distributed
Initialize torch.distributed.
heywhale/LM-Pretrain-Finetune/pretrain/megatron/mpu/tests/commons.py:42
↓ 5 callersFunctioninitialize_megatron
Set global variables, initialize distributed, and set autoresume and random seeds. `allow_no_cuda` should not be set unless using megatron for
heywhale/LM-Pretrain-Finetune/pretrain/megatron/initialize.py:35
↓ 5 callersFunctionletterbox
(im, new_shape=(640, 640), color=(114, 114, 114), auto=True, scaleFill=False, scaleup=True, stride=32)
else/Chick-Counting/detect/utils/augmentations.py:92
↓ 5 callersFunctionload_model
(bert_name,weight_path)
heywhale/gaiic2022/code/qyl_online/infer_bert_tuwen_reproduct.py:12
↓ 5 callersMethodload_state_dict
Load the state dicts of each of the models
heywhale/LM-Pretrain-Finetune/pretrain/megatron/model/realm_model.py:105
↓ 5 callersFunctionmake_divisible
(x, divisor)
else/Chick-Counting/detect/utils/general.py:426
↓ 5 callersFunctionread_dataset
(args, path)
else/天马杯--AI+z智能质检/code/run_classifier.py:130
↓ 5 callersFunctionread_dataset
(args, path)
else/天马杯--AI+z智能质检/code/run_c3.py:63
↓ 5 callersFunctionremove_prefix
(from_string, prefix=WANDB_ARTIFACT_PREFIX)
else/Chick-Counting/detect/utils/loggers/wandb/wandb_utils.py:33
↓ 5 callersFunctionsave_one_box
(xyxy, im, file='image.jpg', gain=1.02, pad=10, square=False, BGR=False, save=True)
else/Chick-Counting/detect/utils/general.py:793
↓ 5 callersFunctionscale_coords
(img1_shape, coords, img0_shape, ratio_pad=None)
tianchi/2021-Guangdong-Competition/yolov5/utils/utils.py:173
↓ 5 callersFunctionselect_frt_names
(train_data, thres=0.1)
datafountain/CCF2020-非法集资/utils/helpers.py:63
↓ 5 callersMethodshow
(self)
else/Chick-Counting/detect/models/common.py:422
↓ 5 callersFunctionsimplify
(param)
tianchi/2022CVPR-petBiometricChalenge/train_triple.py:256
↓ 5 callersFunctionsimplify
(param)
tianchi/2022CVPR-petBiometricChalenge/train_siamese.py:244
↓ 5 callersFunctionsimplify
(param)
tianchi/2022CVPR-petBiometricChalenge/train_ct.py:265
↓ 5 callersFunctionsimplify
(param)
else/data_lake/car/train.py:279
↓ 5 callersFunctionsimplify
(param)
else/data_lake/person/train.py:277
↓ 5 callersMethodsizes
(self)
heywhale/LM-Pretrain-Finetune/pretrain/megatron/data/indexed_dataset.py:515
← previousnext →101–200 of 3,531, ranked by callers