MCPcopy Create free account

hub / github.com/PaddlePaddle/Research / functions

Functions7,542 in github.com/PaddlePaddle/Research

↓ 2 callersFunctionextract_result
extract_result
KG/DuEE_baseline/DuEE-PaddleHub/data_process.py:111
↓ 2 callersFunctionextract_score
(line)
NLP/MRQA2019-D-NET/multi_task_learning/scripts/macro_avg.py:6
↓ 2 callersFunctionextract_value_from_sql
Args: sql_json (TYPE): NULL sql_format (str): dusql/nl2sql Returns: TODO Raises: NULL
NLP/Text2SQL-BASELINE/script/schema_linking.py:156
↓ 2 callersFunctionf1_score
(preds, labels)
NLP/NAACL2021-RocketQA/model/src/finetune/dual_encoder.py:327
↓ 2 callersFunctionf1_score
(prediction, ground_truth, **kwargs)
NLP/ACL2024-NACL/src/eval_utils.py:383
↓ 2 callersFunctionf1_score
(prediction, ground_truth)
NLP/ACL2024-NACL/src/compute_scores.py:56
↓ 2 callersFunctionf1_score
This function calculates and returns the f1-score Args: prediction: prediction string or list to be matched ground_truth: gol
NLP/ACL2018-DuReader/src/preprocess.py:72
↓ 2 callersMethodfc_fn
pack fc op
ST_DM/CIKM2019-MONOPOLY/nets/house_price/house_price.py:61
↓ 2 callersFunctionfile_reader
(file_path)
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/goal_planning/data_generator/data_generator.py:8
↓ 2 callersFunctionfilter_dict
Filter a subset of the result_dict, where keys ends with 'key_tag'.
NLP/ACL2018-DuReader/utils/dureader_eval.py:201
↓ 2 callersMethodfinalize
finalize
NLP/Text2SQL-BASELINE/text2sql/utils/metrics.py:240
↓ 2 callersMethodfinalize_and_log_out
Not implemented
KG/DuKEVU_Baseline/paddle-video-classify-tag/metrics/metrics_util.py:48
↓ 2 callersFunctionfind_best_thresh
(preds, scores, na_probs, qid_to_has_ans)
NLP/MRQA2019-D-NET/server/xlnet_server/squad_utils.py:201
↓ 2 callersFunctionfind_best_thresh_v2
(preds, scores, na_probs, qid_to_has_ans)
NLP/MRQA2019-D-NET/server/xlnet_server/squad_utils.py:222
↓ 2 callersMethodfinetuning_predict
(self, x_qry, y_qry, fast_weights, poiid_emb, scaler=None, meta_feature=None)
ST_DM/KDD2021-CHAML/model/meta.py:170
↓ 2 callersFunctionfirst_int_match
(prediction)
NLP/ACL2024-NACL/src/compute_scores.py:126
↓ 2 callersFunctionfive_crop
Crop the given numpy ndarray into four corners and the central crop. .. Note:: This transform returns a tuple of images and there may be a
CV/CLPI-Collaborative-Learning-for-Diabetic-Retinopathy-Grading/opencv_functional.py:216
↓ 2 callersMethodflatten_dict_output
将字典类型的output与label展开为list,并确保其一一对应 output: dict {key1: [tensor1, tensor2], key2: [tensor3, tensor4, ...]} |
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/trainer/evaluator.py:175
↓ 2 callersFunctionflip_left_right_image
(image)
CV/SemSegPaddle/eval.py:289
↓ 2 callersFunctionflip_left_right_image
(image)
CV/SemSegPaddleDG/eval.py:106
↓ 2 callersMethodformat_check
文件格式验证 :param file_path: 文件路径 :return: Bool类型:是否通过格式检查,通过为True,反之False
KG/DuEL_Baseline/data/eval.py:35
↓ 2 callersFunctionformat_output
(example, predict_result, spo_label_map, tok_to_orig_start_index, tok_to_orig_end_index)
KG/DuIE_Baseline/ernie/finetune/relation_extraction_multi_cls.py:356
↓ 2 callersFunctionforward_fast_decode
Use beam search to decode. Caches will be used to store states of history steps which can make the decoding faster.
NLP/EMNLP2019-MAL/src/forward_model.py:788
↓ 2 callersMethodforward_features
forward
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/model/brain_intracranial_hemorrhage_clas/swin_transformers.py:665
↓ 2 callersFunctionforward_position_encoding_init
Generate the initial values for the sinusoid position encoding table.
NLP/EMNLP2019-MAL/src/forward_model.py:58
↓ 2 callersFunctionforward_transformer
transformer
NLP/EMNLP2019-MAL/src/forward_model.py:523
↓ 2 callersMethodforward_unbatched
Args: q_enc (TYPE): shape = [batch(=1), q_len, hidden] c_enc (TYPE): shape = [batch(=1), c_len, hidden]
NLP/Text2SQL-BASELINE/text2sql/models/relational_encoder.py:92
↓ 2 callersMethodfree
free this buffer to it's owner
CV/PaddleReid/reid/data/shared_queue/sharedmemory.py:183
↓ 2 callersMethodfreeze
(d)
KG/CoKE/bin/pathquery_data_preprocess.py:86
↓ 2 callersMethodgather_cache
gather cache
NLP/EMNLP2019-MAL/src/beam_search.py:43
↓ 2 callersFunctiongelu
Gaussian Error Linear Unit. This is a smoother version of the RELU. Original paper: https://arxiv.org/abs/1606.08415 Args: x: float Tensor
ST_DM/KDD2021-MSTPAC/code/MST-PAC/nets/common/transformer_encoder.py:27
↓ 2 callersFunctiongenerate
Call Q-TOD model generation.
NLP/EMNLP2022-Q-TOD/infer.py:184
↓ 2 callersMethodgenerate_batch_data
Generate batch data.
NLP/NAACL2019-MPM/reader.py:87
↓ 2 callersMethodgenerate_data
:param data_dir: target dir(includes vocab file) :param tmp_dir: original dir(includes training dataset filenames) :return:
NLP/EMNLP2019-MAL/src/preprocess/problem.py:46
↓ 2 callersMethodgenerate_instance
generate instance with given feature Args: feature: InputFeatures(object). A single set of features of data.
NLP/NAACL2019-MPM/reader.py:75
↓ 2 callersFunctiongenerate_onlytail_mask_type
(input_file, output_file)
KG/CoKE/bin/pathquery_data_preprocess.py:215
↓ 2 callersFunctiongenerate_relative_positions_embeddings
(length, depth, max_relative_position, name, cache=False)
NLP/EMNLP2019-MAL/src/attention.py:38
↓ 2 callersMethodgenerator
batch dict generator
ST_DM/KDD2021-HGAMN/src/dataset/base_dataset.py:110
↓ 2 callersMethodget
(self, name, mode, cfg)
KG/DuKEVU_Baseline/paddle-video-classify-tag/metrics/metrics_util.py:238
↓ 2 callersFunctionget_argmax_pred
get_argmax_pred
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/goal_planning/model/goal_planning.py:376
↓ 2 callersFunctionget_bgr_features
(image)
CV/VehicleCounting/cam-configs/utils/utils.py:24
↓ 2 callersFunctionget_candidate_for_conversation
get candidate for conversation
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/retrieval_model/tools/construct_candidate.py:78
↓ 2 callersFunctionget_candidate_for_conversation
get candidate for conversation
NLP/ACL2019-DuConv/retrieval_paddle/tools/construct_candidate.py:78
↓ 2 callersFunctionget_char_list
Args: sentence (TYPE): NULL Returns: tuple Raises: NULL
NLP/Text2SQL-BASELINE/script/schema_linking.py:47
↓ 2 callersMethodget_checkpoints
(self)
NLP/UNIMO-2/src/finetune/img2txt_oscar.py:1686
↓ 2 callersMethodget_cmcl_scores
Get the score for img-text pairs
NLP/UNIMO-2/src/model/unimo_grounded.py:1379
↓ 2 callersFunctionget_curriculum
TODO: One has to instantiate the curriculum according to the paper. That means to 1. train the learner (DIN) model on the "transfer-
ST_DM/KDD2021-CHAML/main.py:52
↓ 2 callersFunctionget_data
(cfg, split, base_size, crop_size, batch_size=1, gpu_num=1)
CV/SemSegPaddleDG/train.py:107
↓ 2 callersFunctionget_data
(data_tag, undersample=False)
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/goal_planning/data_generator/train_generator.py:122
↓ 2 callersFunctionget_data_reader
(args, data_file, epoch, is_training, shuffle, dev_count, vocab_size)
KG/CoKE/bin/run.py:526
↓ 2 callersMethodget_examples
(self, data_path, is_training, version_2_with_n
NLP/ACL2019-KTNET/reading_comprehension/src/reader/record.py:566
↓ 2 callersMethodget_examples
(self, data_path, is_training, version_2_with_n
NLP/ACL2019-KTNET/reading_comprehension/src/reader/record_twomemory.py:580
↓ 2 callersMethodget_examples
(self, data_path, is_training, version_2_with_n
NLP/ACL2019-KTNET/reading_comprehension/src/reader/squad_twomemory.py:581
↓ 2 callersMethodget_examples
(self, data_path, is_training, version_2_with_n
NLP/ACL2019-KTNET/reading_comprehension/src/reader/squad.py:567
↓ 2 callersMethodget_examples
(self, data_path, is_training, version_2_with_n
NLP/DuReader-Robust-BASELINE/src/reader/squad.py:466
↓ 2 callersMethodget_examples
(self, data_path, is_training, with_negative=Fa
NLP/MRQA2019-BASELINE/src/reader/mrqa.py:616
↓ 2 callersMethodget_examples_by_file
get_examples_by_file
KG/DuEE_baseline/bin/reader/task_reader.py:690
↓ 2 callersMethodget_factory_instance
get dataset and net from the corresponding factory
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/base_frame.py:317
↓ 2 callersMethodget_factory_instance
get dataset and net from the corresponding factory
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/base_frame.py:305
↓ 2 callersMethodget_features
(self, examples, is_training, **concept_settings)
NLP/ACL2019-KTNET/reading_comprehension/src/reader/record.py:582
↓ 2 callersMethodget_features
(self, examples, is_training, **concept_settings)
NLP/ACL2019-KTNET/reading_comprehension/src/reader/record_twomemory.py:596
↓ 2 callersMethodget_features
(self, examples, is_training, **concept_settings)
NLP/ACL2019-KTNET/reading_comprehension/src/reader/squad_twomemory.py:597
↓ 2 callersMethodget_features
Get training/test features.
KG/ACL2021_GRAN/src/reader/data_reader.py:284
↓ 2 callersFunctionget_field_presence_info
get_field_presence_info
NLP/Text2SQL-BASELINE/text2sql/dataproc/sql_preproc_v2.py:45
↓ 2 callersFunctionget_fov
Get the field of view from an fundus image. ---- Args: img: uint8, 2D array, sugested be the red channel of a fundus image.
CV/robust_vessel_segmentation/data_aug.py:35
↓ 2 callersFunctionget_keywords
Args: Returns:
NLP/Text2SQL-BASELINE/tools/evaluation/text2sql_evaluation.py:1123
↓ 2 callersFunctionget_keywords
Args: Returns:
NLP/Text2SQL-BASELINE/text2sql/utils/dusql_evaluation.py:1192
↓ 2 callersMethodget_labels
Gets the list of labels for this data set.
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/retrieval_model/source/inputters/data_provider.py:211
↓ 2 callersMethodget_labels
See base class.
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/retrieval_model/source/inputters/data_provider.py:366
↓ 2 callersMethodget_labels
Gets the list of labels for this data set.
NLP/ACL2019-DuConv/retrieval_paddle/source/inputters/data_provider.py:206
↓ 2 callersMethodget_labels
See base class.
NLP/ACL2019-DuConv/retrieval_paddle/source/inputters/data_provider.py:355
↓ 2 callersMethodget_lr
(self, lr_policy)
CV/SemSegPaddle/src/utils/solver.py:85
↓ 2 callersMethodget_match_output
(self, text, image, mode="mul")
NLP/UNIMO-2/src/model/unimo_grounded.py:1018
↓ 2 callersFunctionget_mean_std
(arr)
ST_DM/KDD2021-CHAML/preprocess/step3.py:43
↓ 2 callersMethodget_neighbour_dict
(self, graph)
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/goal_planning/data_generator/train_generator.py:83
↓ 2 callersFunctionget_ngrams
(n, text)
NLP/EMNLP2021-SgSum/src/networks/roberta_multigraphextsum/run_graphsum.py:851
↓ 2 callersMethodget_num_examples
Get number of examples for train, dev or test.
NLP/NAACL2019-MPM/reader.py:118
↓ 2 callersMethodget_num_examples
(self, input_file)
KG/DuIE_Baseline/ernie/reader/task_reader.py:163
↓ 2 callersMethodget_page_status
(self, start, page_num, ret_flag=False)
CV/PaddleReid/reid/data/shared_queue/sharedmemory.py:294
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
NLP/UNIMO-2/src/model/roberta_tokenization.py:142
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
NLP/EMNLP2021-SgSum/src/roberta/roberta_tokenization.py:141
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
NLP/EMNLP2021-SgSum/src/eval/tokenization.py:120
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
NLP/EMNLP2021-SgSum/src/data_preprocess/roberta/roberta_tokenization.py:141
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
NLP/Dialogue-PLATO/plato/data/tokenizer.py:486
↓ 2 callersFunctionget_point_data
get_point_data
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/goal_planning/model/paddle_astar_goal.py:89
↓ 2 callersFunctionget_point_data
get_point_data
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/goal_planning/model/paddle_astar_kg.py:90
↓ 2 callersMethodget_pooled_output
Get the first feature of each sequence for classification
NLP/NAACL2021-RocketQA/model/src/model/ernie.py:183
↓ 2 callersMethodget_pooled_output
Get the first feature of each sequence for classification
NLP/UNIMO-2/src/model/unimo_grounded.py:960
↓ 2 callersMethodget_pooled_output
get_pooled_output
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/retrieval_model/source/models/retrieval_model.py:216
↓ 2 callersMethodget_pooled_output
(self, context_next_sent_index)
NLP/ACL2019-DuConv/retrieval_paddle/source/models/retrieval_model.py:196
↓ 2 callersMethodget_pooled_output
Get the first feature of each sequence for classification
NLP/MRQA2019-BASELINE/src/model/bert.py:144
↓ 2 callersMethodget_pooled_output
Get the first feature of each sequence for classification
KG/DuIE_Baseline/ernie/model/ernie.py:177
↓ 2 callersMethodget_pooled_output
Get the first feature of each sequence for classification
KG/DuEL_Baseline/ernie/model/ernie.py:206
↓ 2 callersFunctionget_pred_text
get_pred_text
KG/DuEE_baseline/bin/run_event_role.py:356
↓ 2 callersFunctionget_pred_text
get_pred_text
KG/DuEE_baseline/bin/run_event_trigger.py:358
↓ 2 callersFunctionget_recall_k
scores: sample x len x 5 idx: 1 means text retrieval(i2c), 2 means image retrieval(c2i)
NLP/UNIMO/src/eval/img_eval.py:35
↓ 2 callersFunctionget_save_name
(set_name, cfg)
CV/PaddleReid/test_query_gallery.py:73
↓ 2 callersMethodget_score_V2
calculate distance between two features
ST_DM/CIKM2022-DuMapper/DME/metric/signboard_pr.py:130
↓ 2 callersFunctionget_scores
Args: Returns:
NLP/Text2SQL-BASELINE/tools/evaluation/utils.py:51
↓ 2 callersMethodget_sequence_output
(self)
KG/DuIE_Baseline/ernie/model/ernie.py:174
← previousnext →1,401–1,500 of 7,542, ranked by callers