Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
seemingwang a167b705b5 | 2 years ago | |
---|---|---|
.. | ||
codestyle | 4 years ago | |
utils | 3 years ago | |
__init__.py | 4 years ago | |
build_script.sh | 3 years ago | |
cal_pos_neg.py | 3 years ago | |
infer.py | 3 years ago | |
k8s_tools.py | 3 years ago | |
paddle_infer.py | 3 years ago | |
readme.md | 3 years ago | |
rec_client.py | 3 years ago | |
run_gpubox.sh | 2 years ago | |
static_gpubox_trainer.py | 2 years ago | |
static_infer.py | 3 years ago | |
static_ps_online_trainer.py | 3 years ago | |
static_ps_trainer.py | 3 years ago | |
static_trainer.py | 2 years ago | |
to_static.py | 3 years ago | |
tools.py | 4 years ago | |
trainer.py | 3 years ago | |
webserver.py | 3 years ago |
本目录下包含了paddlerec的各种训练模式的核心代码,以及经常用到的一些工具脚本。
程序名称 | 实现的功能 | 支持的环境 | 使用命令 |
---|---|---|---|
trainer.py | trainer.py是使用动态图进行训练的相关代码,主要实现了动态图通用的训练流程 | 可以支持在windows/linux/macos环境下从任意目录通过相对路径启动。支持使用cpu/gpu运行 | 支持在任意目录下运行,以dnn模型为示例,在PaddleRec根目录中运行的命令为:python -u tools/trainer.py -m models/rank/dnn/config.yaml |
infer.py | infer.py是使用动态图进行预测的相关代码,主要实现了动态图通用的预测流程 | 可以支持在windows/linux/macos环境下从任意目录通过相对路径启动。支持使用cpu/gpu运行 | 支持在任意目录下运行,以dnn模型为示例,在PaddleRec根目录中运行的命令为:python -u tools/infer.py -m models/rank/dnn/config.yaml |
static_train.py | static_train.py是使用静态图进行训练的相关代码,主要实现了静态图通用的训练流程 | 可以支持在windows/linux/macos环境下从任意目录通过相对路径启动。支持使用cpu/gpu运行 | 支持在任意目录下运行,以dnn模型为示例,在PaddleRec根目录中运行的命令为:python -u tools/static_trainer.py -m models/rank/dnn/config.yaml |
static_infer.py | static_infer.py是使用静态图进行预测的相关代码,主要实现了动态图通用的预测流程 | 可以支持在windows/linux/macos环境下从任意目录通过相对路径启动。支持使用cpu/gpu运行 | 支持在任意目录下运行,以dnn模型为示例,在PaddleRec根目录中运行的命令为:python -u tools/static_infer.py -m models/rank/dnn/config.yaml |
static_ps_trainer.py | static_ps_trainer.py是基于参数服务器模式(ParameterServer)的分布式训练相关代码,目前仅支持使用静态图的方式训练 | 可以支持在linux环境下从任意目录通过相对路径启动。 | 支持在任意目录下运行,以dnn模型为示例,在PaddleRec根目录中运行的命令为:fleetrun --worker_num=1 --server_num=1 tools/static_ps_trainer.py -m models/rank/dnn/config.yaml |
static_gpubox_trainer.py | static_gpubox_trainer.py是基于异构参数服务器纯GPU模式(ParameterServer)的分布式训练相关代码,目前仅支持使用静态图的方式训练 | 可以支持在linux环境下从任意目录通过相对路径启动。 | 支持在任意目录下运行,以dnn模型为示例,在PaddleRec根目录中运行的命令为:sh tools/run_gpubox.sh 。详细可参考GPUBOX原理与使用 |
cal_pos_neg.py | 输入一个文件,文件中包含以"tab"分割的查询内容(query),模型计算正负例的相似度(sim)和真实标签(label),计算正逆序比(正序率)的脚本 | 可以在windows/linux/macos环境下从任意目录通过相对路径启动 | 支持在任意目录下运行,以dssm模型为示例,在dssm模型目录中运行的命令为:python ../../../tools/cal_pos_neg.py pair.txt |
recserving | recserving用于构建一个完整的推荐服务。以电影推荐系统为例,展示了使用PaddleRec搭建一个电影推荐系统的全部流程和效果 | 可以支持在linux环境下启动 | 具体用法见recserving目录下的readme |
使用国内深度学习开源框架PaddlePaddle(百度飞桨)复现推荐 CTR 算法 DIFM
Python Text Shell
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》