MCPcopy Create free account

hub / github.com/ShenDezhou/CAIL / functions

Functions6,528 in github.com/ShenDezhou/CAIL

↓ 9 callersFunction_resnet
(arch, block, layers, pretrained, progress, **kwargs)
CAIL2020/lbwjtpu/resnet.py:223
↓ 9 callersFunction_resnet
(arch, block, layers, pretrained, progress, **kwargs)
CAIL2020/lbwj/resnet.py:223
↓ 9 callersFunction_resnet
(arch, block, layers, pretrained, progress, **kwargs)
CAIL2020/ydljz(hong)/resnet2d.py:225
↓ 9 callersFunction_resnet
(arch, block, layers, pretrained, progress, **kwargs)
CAIL2020/ydljz(hong)/resnet.py:224
↓ 9 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/sfksy/data.py:82
↓ 9 callersMethodencode_file
(self, path, ordered=False, verbose=False, add_eos=True, add_double_eos=False)
CAIL2020/ydlj/baseline/transformers/tokenization_transfo_xl.py:176
↓ 9 callersFunctioneval
[summary] Args: golden_file_path (str): golden 集合路径 user_file_path (str): 用户预测结果路径 Returns: dict: the key is [F
CAIL2020/stsb/eval.py:165
↓ 9 callersMethodload_3rd_state_dict
(self, _3rd_name, _state)
CAIL2020/cocr/torchocr/networks/backbones/RecResNetLMvd.py:110
↓ 9 callersFunctionpredict
(model, dataloader, example_dict, feature_dict, prediction_file, need_sp_logit_file=False)
CAIL2020/ydljztpu/main.py:59
↓ 9 callersMethodprepare_config_and_inputs
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_tf_bert_test.py:97
↓ 9 callersMethodprepare_config_and_inputs_for_common
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_xlm_test.py:285
↓ 9 callersMethodto_dict
Serializes this instance to a Python dictionary.
CAIL2020/ydlj/baseline/transformers/data/processors/utils.py:44
↓ 8 callersMethod__init__
(self, config)
CAIL2020/ydlj/baseline/transformers/modeling_xlm.py:344
↓ 8 callersMethod__init__
(self, conv_size, *args, **params)
CAIL2020/lbwj/model.py:485
↓ 8 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
CAIL2020/ydlj/baseline/transformers/tokenization_bert.py:465
↓ 8 callersFunctioncalculate_accuracy_f1
Calculate accuracy and f1 score. Args: golds: answers predicts: predictions given by model Returns: accuracy, f1 sco
CAIL2020/zwfc/evaluate.py:18
↓ 8 callersFunctioncalculate_accuracy_f1
Calculate accuracy and f1 score. Args: golds: answers predicts: predictions given by model Returns: accuracy, f1 sco
CAIL2020/jesbl/evaluate.py:18
↓ 8 callersMethodcheck_loss_output
(self, result)
CAIL2020/ydlj/baseline/transformers/tests/modeling_bert_test.py:136
↓ 8 callersMethoddecode
Find the most likely tag sequence using Viterbi algorithm. Args: emissions (`~torch.Tensor`): Emission score tensor of size
CAIL2020/jesbl/model.py:676
↓ 8 callersFunctionevaluate
Evaluate model on data loader in device. Args: model: model to be evaluate data_loader: torch.utils.data.DataLoader devic
CAIL2018/xsfl/evaluate.py:79
↓ 8 callersFunctionevaluate
Evaluate model on data loader in device. Args: model: model to be evaluate data_loader: torch.utils.data.DataLoader devic
CAIL2021/stxq/evaluate.py:79
↓ 8 callersFunctionevaluate
Evaluate model on data loader in device. Args: model: model to be evaluate data_loader: torch.utils.data.DataLoader devic
CAIL2021/slsb/evaluate.py:79
↓ 8 callersFunctionevaluate
Evaluate model on data loader in device. Args: model: model to be evaluate data_loader: torch.utils.data.DataLoader devic
CAIL2020/zwfc/evaluate.py:79
↓ 8 callersFunctionevaluate
Evaluate model on data loader in device. Args: model: model to be evaluate data_loader: torch.utils.data.DataLoader devic
CAIL2020/jesbl/evaluate.py:79
↓ 8 callersFunctionevaluate
Evaluate model on data loader in device. Args: model: model to be evaluate data_loader: torch.utils.data.DataLoader devic
CAIL2020/sfzyzc/sfzyza/evaluate.py:80
↓ 8 callersMethodload_3rd_state_dict
(self, _3rd_name, _state)
CAIL2020/lbwj/resnetv.py:235
↓ 8 callersMethodload_3rd_state_dict
(self, _3rd_name, _state)
CAIL2020/cocr/torchocr/networks/backbones/DetResNetvd.py:244
↓ 8 callersMethodload_3rd_state_dict
(self, _3rd_name, _state)
CAIL2020/cocr/torchocr/networks/backbones/RecResNetvd.py:235
↓ 8 callersMethodprepare_config_and_inputs
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_xlnet_test.py:96
↓ 8 callersFunctionsave_checkpoint
(checkpoint_path, model, _optimizers, logger, cfg, **kwargs)
CAIL2020/cocr/torchocr/utils/ckpt.py:37
↓ 8 callersFunctionsimple_accuracy
(preds, labels)
CAIL2020/ydlj/baseline/transformers/data/metrics/__init__.py:36
↓ 8 callersMethodtrain
Train model on train set and evaluate on train and valid set. Returns: state dict of the best model with highest valid f1 score
CAIL2020/ydljztpus/train.py:278
↓ 8 callersMethodtrain
Train model on train set and evaluate on train and valid set. Returns: state dict of the best model with highest valid f1 score
CAIL2020/ydljztpu/train.py:277
↓ 8 callersMethodtrain
Train model on train set and evaluate on train and valid set. Returns: state dict of the best model with highest valid f1 score
CAIL2020/ydljz(hong)tpu/train.py:276
↓ 7 callersMethod__init__
(self, config)
CAIL2020/znwd/model.py:567
↓ 7 callersMethod__init__
(self, d_model, d_inner, dropout, pre_lnorm=False, layer_norm_epsilon=1e-5, init_std=0.02, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl.py:60
↓ 7 callersMethod__init__
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights are
CAIL2020/ydlj/baseline/transformers/modeling_utils.py:494
↓ 7 callersMethod__init__
(self, config, *inputs, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_roberta.py:207
↓ 7 callersMethod__init__
(self, config, *inputs, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlm.py:584
↓ 7 callersMethod__init__
(self, config)
CAIL2020/ydlj/baseline/transformers/modeling_roberta.py:180
↓ 7 callersMethod__init__
(self, config, gpu_list, *args, **params)
CAIL2020/sfksz/model/qa/qa.py:13
↓ 7 callersMethod__init__
(self, config)
CAIL2020/sfzyzc/sfzyza/model.py:637
↓ 7 callersMethod__init__
(self, config)
CAIL2020/sfzyza/model.py:637
↓ 7 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
CAIL2020/ydlj/baseline/transformers/tokenization_bert.py:489
↓ 7 callersMethodassertListAlmostEqual
(self, list1, list2, tol)
CAIL2020/ydlj/baseline/transformers/tests/optimization_tf_test.py:20
↓ 7 callersFunctioncalculate_accuracy_f1
Calculate accuracy and f1 score. Args: golds: answers predicts: predictions given by model Returns: accuracy, f1 sco
CAIL2021/stxq/evaluate.py:18
↓ 7 callersFunctioncalculate_accuracy_f1
Calculate accuracy and f1 score. Args: golds: answers predicts: predictions given by model Returns: accuracy, f1 sco
CAIL2021/slsb/evaluate.py:18
↓ 7 callersMethoddecode
Find the most likely tag sequence using Viterbi algorithm. Args: emissions (`~torch.Tensor`): Emission score tensor of size
CAIL2021/stxq/model.py:676
↓ 7 callersFunctiongen_with_rule
(type = 0)
CAIL2020/jesb/datagen/contract_gen_v7.py:192
↓ 7 callersMethodget_weighted_score
(self, contract_title, civilcode)
CAIL2020/htflsen/articlebyarticle.py:29
↓ 7 callersFunctionhandy_tool
(labels, input_length)
CAIL2020/zwfc/evaluate.py:117
↓ 7 callersFunctionhandy_tool
(labels, input_length)
CAIL2020/jesbl/evaluate.py:117
↓ 7 callersFunctioninit_all
(config, gpu_list, checkpoint, mode, *args, **params)
CAIL2020/sfkst/init_tool.py:14
↓ 7 callersMethodload_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2018/xsfl/data.py:129
↓ 7 callersMethodmake_divisible
(self, v, divisor=8, min_value=None)
CAIL2020/cocr/torchocr/networks/backbones/RecMobileNetV3.py:139
↓ 7 callersMethodmake_divisible
(self, v, divisor=8, min_value=None)
CAIL2020/cocr/torchocr/networks/backbones/DetMobilenetV3.py:160
↓ 7 callersFunctionpredict
(model, dataloader, example_dict, feature_dict, prediction_file, need_sp_logit_file=False)
CAIL2020/ydljz(hong)tpu/main.py:59
↓ 7 callersMethodto_json_string
Serializes this instance to a JSON string.
CAIL2020/ydlj/baseline/transformers/data/processors/utils.py:49
↓ 7 callersMethodtokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
CAIL2020/ydlj/baseline/transformers/tokenization_bert.py:413
↓ 7 callersMethodtrain
Train model on train set and evaluate on train and valid set. Returns: state dict of the best model with highest valid f1 score
CAIL2020/covid/train.py:190
↓ 6 callersMethod__init__
(self, config)
CAIL2018/xsfl/model.py:495
↓ 6 callersMethod__init__
(self, config)
CAIL2020/hyfl/model.py:495
↓ 6 callersMethod__init__
(self, config)
CAIL2020/jesb/model.py:489
↓ 6 callersMethod__init__
(self, n_state, config, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_openai.py:159
↓ 6 callersMethod__init__
(self, d_model, d_inner, dropout, pre_lnorm=False, layer_norm_epsilon=1e-5)
CAIL2020/ydlj/baseline/transformers/modeling_transfo_xl.py:197
↓ 6 callersMethod__init__
(self, n_state, config, **kwargs)
CAIL2020/ydlj/baseline/transformers/modeling_tf_gpt2.py:158
↓ 6 callersMethod__init__
(self, n_state, config)
CAIL2020/ydlj/baseline/transformers/modeling_gpt2.py:205
↓ 6 callersMethod_compute_logit
(self, hidden, weight, bias, proj)
CAIL2020/ydlj/baseline/transformers/modeling_transfo_xl_utilities.py:78
↓ 6 callersMethod_init_weight
(self, weight)
CAIL2020/ydlj/baseline/transformers/modeling_transfo_xl.py:466
↓ 6 callersFunction_is_control
Checks whether `chars` is a control character.
CAIL2020/ydlj/baseline/transformers/tokenization_bert.py:477
↓ 6 callersFunctionbuild_model
get architecture model class
CAIL2020/cocr/torchocr/networks/architectures/__init__.py:12
↓ 6 callersMethodconvert_ids_to_tokens
Converts a single index or a sequence of indices (integers) in a token " (resp.) a sequence of tokens (str/unicode), using the vocabulary
CAIL2020/ydlj/baseline/transformers/tokenization_utils.py:1124
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2021/stxq/data.py:87
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljz/data.py:84
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljzs/data.py:84
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljztpus/data.py:84
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljzt/data.py:84
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljtpu/data.py:83
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljztpu/data.py:84
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljx/data.py:83
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljz(hong)tpu/data.py:84
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to ids. Args: tokens_list: word list Returns: index list
CAIL2020/ydljz(hong)/data.py:85
↓ 6 callersFunctioncreate_int_feature
(values)
CAIL2020/lawbert/create_pretraining_data.py:169
↓ 6 callersMethoddecode
convert text-index into text-label.
CAIL2020/cocr/torchocr/utils/label_convert.py:40
↓ 6 callersFunctionevaluate
Evaluate model on data loader in device. Args: model: model to be evaluate data_loader: torch.utils.data.DataLoader devic
CAIL2020/sfzyza/evaluate.py:80
↓ 6 callersFunctiongen_digit_amount
(lenghth, comma=True, period=True, ten_thousand=False, prefix_flag=0)
CAIL2020/jesb/datagen/contract_gen_v7.py:144
↓ 6 callersFunctiongen_digit_amount
(lenghth, comma=True, period=True)
CAIL2020/jesb/datagen/contract_gen_v6.py:140
↓ 6 callersFunctiongen_digit_amount
(lenghth, comma=True, period=True, ten_thousand=False, prefix_flag=0)
CAIL2020/jesb/datagen/contract_gen_v8.py:185
↓ 6 callersFunctiongen_with_rule
(type = 0)
CAIL2020/jesb/datagen/contract_gen_v6.py:172
↓ 6 callersFunctionget_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2021/stxq/utils.py:27
↓ 6 callersFunctionget_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2021/slsb/utils.py:27
↓ 6 callersFunctionget_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2020/zwfc/utils.py:27
↓ 6 callersFunctionget_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2020/jesbl/utils.py:27
↓ 6 callersFunctionget_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/sfzyzc/sfzyza/evaluate.py:51
↓ 6 callersFunctionget_path
Create the path if it does not exist. Args: path: path to be used Returns: Existed path
CAIL2021/stxq/utils.py:13
↓ 6 callersFunctionget_path
Create the path if it does not exist. Args: path: path to be used Returns: Existed path
CAIL2021/slsb/utils.py:13
↓ 6 callersFunctionget_path
Create the path if it does not exist. Args: path: path to be used Returns: Existed path
CAIL2020/ydljz/utils.py:12
↓ 6 callersFunctionget_path
Create the path if it does not exist. Args: path: path to be used Returns: Existed path
CAIL2020/ydljzs/utils.py:12
↓ 6 callersFunctionget_path
Create the path if it does not exist. Args: path: path to be used Returns: Existed path
CAIL2020/ydljzt/utils.py:12
↓ 6 callersFunctionget_path
Create the path if it does not exist. Args: path: path to be used Returns: Existed path
CAIL2020/zwfc/utils.py:13
← previousnext →101–200 of 6,528, ranked by callers