Include custom model class with deployment
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
跟踪 vetiver.write_app() 如何构建部署 bundle,以及 prepare_docker 和 deploy_rsconnect 如何使用这些 bundle,然后检查所描述的自定义模型类的 pin_read 失败问题。定义应如何包含源文件和导入,以便无需手动设置即可重新创建自定义模型,并验证其在受影响的部署路径中的行为。
由索引模型根据 Issue 内容生成。
描述
When using a custom model (or piece of model), people must include a way to access the source code to recreate the model on pin_read, otherwise they will encounter issues such as:
Unexpected error while running Python API: Can't get attribute 'XXXXXX' on <module '__main__' from 'path_to_app.py'>
Currently, the most ergonomic fix is to include the file where the model is created in deployment bundle, and add an import statement to get the model's class into the file that is being deployed (usually called app.py).
People can do this by hand, but it would be nice to add in programmatically when people use vetiver.write_app() (and consequentially vetiver.prepare_docker and vetiver.deploy_rsconnect).
- 主要语言
- Python
- 星标
- 71
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rstudio/vetiver-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
rstudio/vetiver-python#241 ·
-
bug deploy pins
难度 3/5 1-2 天 新手友好度 45/100
rstudio/vetiver-python#240 · 2 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
rstudio/vetiver-python#239 · 2 条评论 ·
-
deploy enhancement
难度 5/5 一周以上 新手友好度 30/100
rstudio/vetiver-python#238 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
rstudio/vetiver-python#237 · 1 个 reaction ·
查看 rstudio/vetiver-python 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
MystenLabs/MemWal#1163 · 2 条评论 ·
维护者通常 1 天内回复
-
infertopics leaves new nodes without a topic when untopiced neighbours outnumber topiced ones可能已有人在做 @moneebullah25 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
ClanGenOfficial/clangen#6254 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
FinanceFlash/unvibecode#218 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复