Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dssm模型训练好了后,如何得到user和item的向量。文档里面只有一个pai命令。 #468

Open
lzwscu opened this issue May 25, 2024 · 2 comments

Comments

@lzwscu
Copy link

lzwscu commented May 25, 2024

我用easyRec里面的dssm模型,训练好了模型,然后也切割出了user模型和item模型。但是如何得到user向量和item向量呢?有详细的代码示例吗? 文档里面只有一个pai命令。我是直接从git上clone这个项目,然后安装的。没有用阿里云平台。
https://easyrec.readthedocs.io/en/latest/export.html

@eric-gecheng
Copy link
Collaborator

model split后分别对user模型和item模型执行predict操作。如果没有用使用maxcompute,可以做local prediction, 参考https://easyrec.readthedocs.io/en/latest/predict/Local%20%E7%A6%BB%E7%BA%BF%E9%A2%84%E6%B5%8B.html

@poson
Copy link
Collaborator

poson commented Aug 30, 2024

参考 pai designer里面的案例代码:https://help.aliyun.com/zh/pai/use-cases/dssm-vector-recall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants