MCPcopy Create free account

hub / github.com/AFAC2024/AFAC2025 / functions

Functions3,355 in github.com/AFAC2024/AFAC2025

↓ 1 callersFunctionmake_conv
Formats the prompt for the chat model.
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/Coding/human_eval/evaluate_human_eval.py:127
↓ 1 callersFunctionmake_conv
(signature, description, test_list)
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/Coding/mbpp/evaluate_mbpp.py:68
↓ 1 callersFunctionmake_cot_output_prompt
(s)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/code_execution.py:7
↓ 1 callersFunctionmake_direct_output_prompt
(s)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/code_execution.py:38
↓ 1 callersFunctionmake_function
(code: str)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/testing_util.py:89
↓ 1 callersFunctionmake_map_fn
(split)
方案分享/赛题三/双人成行/code/RL/verl/examples/data_preprocess/full_hh_rlhf.py:93
↓ 1 callersFunctionmake_reward_function
(tokenizer, num_examine)
方案分享/赛题三/双人成行/code/RL/verl/tests/e2e/arithmetic_sequence/rl/main_trainer.py:29
↓ 1 callersFunctionmake_signature
(code)
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/Coding/mbpp/evaluate_mbpp.py:60
↓ 1 callersFunctionmasked_var
Compute variance of tensor with masked values.
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:123
↓ 1 callersFunctionmatch_answer
(response)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_math/__init__.py:363
↓ 1 callersMethodmcp_get_data
通过MCP协议获取各类金融数据 包括:上证指数历史数据、财经新闻、基金净值数据、基金排名数据等
方案分享/赛题一/allin/代码文件/Data_Acquire/mcp_data.py:162
↓ 1 callersFunctionmerge_and_shuffle_json_files
(output_file='all_train_cot2.json')
方案分享/赛题三/ljq13317046284/代码/all_train.py:47
↓ 1 callersFunctionmerge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
方案分享/赛题三/双人成行/code/RL/verl/scripts/model_merger.py:25
↓ 1 callersFunctionmerge_csv_to_json
将多个特定格式的CSV文件合并并转换为一个JSON文件。 - 跳过不符合格式的行(如重复的表头)。 - 按照指定的 instruction, input, output 格式构建JSON对象。
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/fineval/dev/dev.py:61
↓ 1 callersFunctionmerge_csv_to_json
将多个特定格式的CSV文件合并并转换为一个JSON文件。 - 跳过不符合格式的行(如重复的表头)。 - 按照指定的 instruction, input, output 格式构建JSON对象。
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/fineval/val/val.py:61
↓ 1 callersFunctionmerge_csv_to_json
将多个特定格式的CSV文件合并并转换为一个JSON文件。 - 跳过不符合格式的行(如重复的表头)。 - 按照指定的 instruction, input, output 格式构建JSON对象。
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/FinanceIQ/dev/csv2json.py:5
↓ 1 callersFunctionmerge_csv_to_json
将多个特定格式的CSV文件合并并转换为一个JSON文件。 - 跳过不符合格式的行(如重复的表头)。 - 按照指定的 instruction, input, output 格式构建JSON对象。
方案分享/赛题三/ljq13317046284/代码/数据集与预处理/FinanceIQ/test/csv2json.py:5
↓ 1 callersFunctionmerge_dataset
r"""Merge multiple datasets to a unified dataset.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/data_utils.py:51
↓ 1 callersFunctionmerge_features
合并折线图特征到主数据集 返回: DataFrame: 合并后的数据
方案分享/赛题一/allin/代码文件/build_trainset.py:132
↓ 1 callersFunctionmerge_resource_pool
(rp1: RayResourcePool, rp2: RayResourcePool)
方案分享/赛题三/双人成行/code/RL/verl/verl/single_controller/ray/base.py:134
↓ 1 callersFunctionmerge_sentiment
合并情感分析数据 返回: DataFrame: 合并情感分析数据后的最终数据集
方案分享/赛题一/allin/代码文件/build_trainset.py:175
↓ 1 callersFunctionmilvus_filter
基于检索表达式,在向量库中查找数据 主要用于过期数据清理
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/tools/store.py:83
↓ 1 callersMethodmonitor
r"""Monitorgit the training progress and logs.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/webui/runner.py:404
↓ 1 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/model.py:209
↓ 1 callersMethododds_ratio_loss
r"""Compute ORPO's odds ratio (OR) loss for batched log probabilities of the policy model.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/dpo/trainer.py:136
↓ 1 callersFunctionoffload_megatron_param_and_grad
(module_list: nn.ModuleList, offload_grad=False, hybrid_engine=None)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron_utils.py:220
↓ 1 callersMethodoffload_params_to_cpu
offload params of models that are not of current pp rank to cpu
方案分享/赛题三/双人成行/code/RL/verl/verl/workers/sharding_manager/megatron_vllm.py:175
↓ 1 callersMethodon_log
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/callbacks.py:271
↓ 1 callersMethodon_save
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/callbacks.py:120
↓ 1 callersMethodon_step_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/callbacks.py:255
↓ 1 callersMethodon_train_begin
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/callbacks.py:238
↓ 1 callersMethodon_train_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/callbacks.py:245
↓ 1 callersFunctiononly_int_check
(val)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/reward_score/prime_code/testing_util.py:89
↓ 1 callersFunctionoversample_last_days
(feature_df, days_threshold, oversample_factor)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main.py:294
↓ 1 callersFunctionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/torch_functional.py:228
↓ 1 callersFunctionpad_to_sequence_parallel
pad the tokens such that the total length is a multiple of sp world size Args: unpad_tokens: (total_nnz, ...). Tokens after removing padd
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/megatron/sequence_parallel.py:29
↓ 1 callersFunctionparallel_put
(data_list, max_workers=None)
方案分享/赛题三/双人成行/code/RL/verl/verl/utils/ray_utils.py:23
↓ 1 callersFunctionparse_answer
Parse boxed answer format.
方案分享/赛题三/ljq13317046284/代码/TALE-main/check_afac_direct.py:38
↓ 1 callersFunctionparse_args
Parse command line arguments.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/mcp/server.py:228
↓ 1 callersFunctionparse_args
解析命令行参数。 返回: 解析后的参数
方案分享/赛题三/双人成行/code/Inference/main.py:14
↓ 1 callersFunctionparse_args
Parse command line arguments.
方案分享/赛题三/ljq13317046284/代码/TALE-main/TALE-PT.py:61
↓ 1 callersFunctionparse_args
Parse command line arguments for the TALE-EP script.
方案分享/赛题三/ljq13317046284/代码/TALE-main/TALE-EP.py:20
↓ 1 callersFunctionparse_args
Parse command line arguments for the inference script.
方案分享/赛题三/ljq13317046284/代码/TALE-main/inference.py:142
↓ 1 callersFunctionparse_args
Parse command line arguments for the budget search script.
方案分享/赛题三/ljq13317046284/代码/TALE-main/search_budget.py:19
↓ 1 callersFunctionparse_assert_statement
Parse a Python assert statement and extract the expected output from the right side of the '==' operator as a string. :param statement:
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/compute_test_output_prediction_metrics.py:9
↓ 1 callersFunctionparse_correct_answers
解析正确答案文件
方案分享/赛题三/丛雨酱/全部代码/create_dpo_dataset.py:6
↓ 1 callersFunctionparse_correct_answers
解析正确答案文件
方案分享/赛题三/丛雨酱/全部代码/create_reject_answer.py:71
↓ 1 callersFunctionparse_file_info
极简版本,只负责从路径中解析 material_id,主要用于日志记录。
方案分享/赛题二/蛋木/code/feature_extract_agent.py:131
↓ 1 callersFunctionparse_function_name_from_starter_code
starter_code : str
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/prompts/test_output_prediction.py:53
↓ 1 callersFunctionparse_fund_web_json
(fund_web_str)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main_roll.py:262
↓ 1 callersFunctionparse_fund_web_json
(fund_web_str)
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main.py:261
↓ 1 callersFunctionparse_jsonp
解析JSONP响应为JSON数据
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/stock_capital.py:29
↓ 1 callersFunctionparse_jsonp
(jsonp_str)
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/get_section_data.py:24
↓ 1 callersFunctionparse_jsonp
解析JSONP响应为JSON数据
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/index_capital.py:68
↓ 1 callersFunctionparse_llm_output
从模型的完整输出中解析出 "问题+选项" 部分的原始文本。
方案分享/赛题三/ljq13317046284/代码/self-instruct.py:174
↓ 1 callersFunctionpass_at_k
(n, c, k)
方案分享/赛题三/双人成行/code/RL/code_eval/LiveCodeBench/lcb_runner/evaluation/compute_code_execution_metrics.py:21
↓ 1 callersFunctionpatch_config
( config: "PretrainedConfig", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments",
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/patcher.py:92
↓ 1 callersFunctionpatch_model
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments", is
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/patcher.py:154
↓ 1 callersFunctionpatch_processor
( processor: "ProcessorMixin", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments", )
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/patcher.py:74
↓ 1 callersFunctionpatch_target_modules
r"""Freeze vision tower for VLM LoRA tuning.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/visual.py:182
↓ 1 callersFunctionpatch_tokenizer
(tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/patcher.py:50
↓ 1 callersFunctionpatch_valuehead_model
(model: "AutoModelForCausalLMWithValueHead")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/patcher.py:197
↓ 1 callersFunctionpd_out_func
(fund_code_map,last_date,pred)
方案分享/赛题一/allin/代码文件/Time_Series/codes/utils.py:58
↓ 1 callersMethodperform_search
Perform a web search and return a list of search items. Args: query (str): The search query to submit to the search engi
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/base.py:25
↓ 1 callersMethodperform_search
Bing search engine. Returns results formatted according to SearchItem model.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/tools/search/bing_search.py:143
↓ 1 callersMethodperform_search
Perform a web search and return a list of search items. Args: query (str): The search query to submit to the search engi
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/search/base.py:25
↓ 1 callersMethodperform_search
Bing search engine. Returns results formatted according to SearchItem model.
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/search/bing_search.py:143
↓ 1 callersMethodplay_audio
Play the audio file using platform-specific methods
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/tts_tool.py:295
↓ 1 callersFunctionplot_bar_heng_chart
(names, values, changes=None, title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:424
↓ 1 callersFunctionplot_bar_line
(dates, bar_datas, line_datas, bar_name=None, line_name=None, title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:289
↓ 1 callersFunctionplot_barchart
(dates, values, x_label=None, y_label=None, title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:576
↓ 1 callersMethodplot_fund_predictions
绘制每只基金的申购金额和赎回金额预测与真实值对比图 参数: apply_pred (np.ndarray): 预测的申购金额,形状为 [num_funds, pred_len] apply_true (np.ndarr
方案分享/赛题一/allin/代码文件/forecast_main.py:164
↓ 1 callersFunctionplot_linechart
(dates, values, x_label=None, y_label=None, title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:505
↓ 1 callersFunctionplot_pie
(labels, datas, title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:252
↓ 1 callersFunctionplot_radar
(categories, datas, labels, title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:360
↓ 1 callersFunctionplot_stock_kline
(dates, closes, opens, highs, lows, volumes, title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:123
↓ 1 callersFunctionplot_table
(csv_string, sep=',', title=None)
方案分享/赛题四/队伍名字不能为空/docker_image/app/mcps/common/chart_utils.py:200
↓ 1 callersFunctionpostprocess_completion
(executor, completion)
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/python_interpreter.py:71
↓ 1 callersFunctionpostprocess_completions
(completion_list)
方案分享/赛题三/双人成行/code/RL/code_eval/MBPP_Humaneval/eval/utils/python_interpreter.py:100
↓ 1 callersMethodppo_train
r"""Implement training loop for the PPO stage, like _inner_training_loop() in Huggingface's Trainer.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/train/ppo/trainer.py:187
↓ 1 callersFunctionpredict_future
使用模型进行预测
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main_roll.py:420
↓ 1 callersFunctionpredict_future
使用模型进行预测
方案分享/赛题一/CEDC冲冲冲/AFAC2025_track1/main.py:446
↓ 1 callersMethodprepare_batch_prompts
准备所有问题的prompt。 参数: system_prompt: 系统提示词,如果为None则使用默认提示词 返回: 包含system和user字段的字典列
方案分享/赛题三/双人成行/code/Inference/data_loader.py:97
↓ 1 callersFunctionprepare_data
Prepare the dataset based on the data_name argument. Args: args: Command line arguments Returns: Dataset: Loaded datase
方案分享/赛题三/ljq13317046284/代码/TALE-main/inference.py:16
↓ 1 callersFunctionprepare_dpo_train_data
Prepare data for Direct Preference Optimization (DPO) training. Returns: Dataset: HuggingFace Dataset object containing form
方案分享/赛题三/ljq13317046284/代码/TALE-main/TALE-PT.py:198
↓ 1 callersFunctionprepare_eval_data
Prepare evaluation data from JSONL file. Args: data_path: Path to the JSONL data file Returns: tuple
方案分享/赛题三/ljq13317046284/代码/TALE-main/TALE-PT.py:151
↓ 1 callersFunctionprepare_fa2_from_position_ids
(query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids:
方案分享/赛题三/双人成行/code/RL/verl/verl/models/transformers/qwen2_vl.py:135
↓ 1 callersFunctionprepare_model_for_training
r"""Prepare the model before training. Include: (1) cast the layernorm in fp32 (2) make output embedding layer require grads (3) add
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/checkpointing.py:141
↓ 1 callersMethodprepare_prompt
准备模型输入的prompt。 参数: question: 问题文本 system_prompt: 系统提示词,如果为None则使用默认提示词 返回:
方案分享/赛题三/双人成行/code/Inference/data_loader.py:77
↓ 1 callersFunctionprepare_sft_train_data
Prepare data for supervised fine-tuning. Returns: Dataset: HuggingFace Dataset object containing formatted training examples
方案分享/赛题三/ljq13317046284/代码/TALE-main/TALE-PT.py:171
↓ 1 callersMethodprepare_tools
(self)
方案分享/赛题一/allin/代码文件/Data_Acquire/mcp_data.py:40
↓ 1 callersFunctionprepare_valuehead_model
(model: "PreTrainedModel")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/valuehead.py:61
↓ 1 callersFunctionprint_attn_implementation
(config: "PretrainedConfig")
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/model/model_utils/attention.py:77
↓ 1 callersMethodprint_data_example
r"""Print a data example to stdout.
方案分享/赛题三/ljq13317046284/代码/LLaMA-Factory-main/src/llamafactory/data/processor/processor_utils.py:43
↓ 1 callersFunctionprint_summary
Print analysis summary to console.
方案分享/赛题三/ljq13317046284/代码/TALE-main/check_afac_direct.py:217
↓ 1 callersMethodprocess_csv_data_with_answers
处理CSV数据的主函数,使用并发处理 Args: csv_file: 问题CSV文件路径 answer_file: 答案文件路径(支持txt格式) output_excel: Exce
方案分享/赛题三/丛雨酱/全部代码/generate_dpo_answer.py:137
↓ 1 callersFunctionprocess_file
处理单个文件:去除空行、行首尾空格,并将中间多余空格替换为单个。
方案分享/赛题二/蛋木/code/md_cleaner.py:4
↓ 1 callersFunctionprocess_file
(input_file, output_file)
方案分享/赛题三/ljq13317046284/代码/dpsk.py:68
↓ 1 callersFunctionprocess_file
(input_file, output_file)
方案分享/赛题三/ljq13317046284/代码/latent_cot.py:32
↓ 1 callersFunctionprocess_flow_data
处理资金流向数据 参数: data: API返回的原始数据 index_code: 指数代码 返回: dict: 处理后的资金流向数据
方案分享/赛题四/天池三轮车/docker_image/docker_image/app/src/tool/financial_deep_search/index_capital.py:148
← previousnext →1,701–1,800 of 3,355, ranked by callers