Downloads · 30 days
0
amy0720/spts_pdf_label_models
spts_pdf_label_models is a machine learning model from amy0720. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
- xgbclassifier.ubj:占位二分类模型,与 ../spec/xgbfeatures.json 列顺序一致。 - 重新生成占位权重:以 Pipe 根目录 README.md →「XGBoost 模型与特征」中的说明为准(若仓库已提供 scripts/genxgbplaceholder.py,一般在仓库根执行该脚本)。
Downloads · 30 days
0
Access
Public
Updated Apr 30, 2026
Repo size
233 MB
Likes
0
Public
Click a slice to open those files.
.bin140 MB · 60%
From the Hugging Face model README
xgb_classifier.ubj:占位二分类模型,与 ../spec/xgb_features.json 列顺序一致。README.md →「XGBoost 模型与特征」中的说明为准(若仓库已提供 scripts/gen_xgb_placeholder.py,一般在仓库根执行该脚本)。以下与 docs/prd/pdf_labeling.md 附录 A 及 Pipe 根目录 README.md 默认超参表对齐;改代码中的默认阈值或模型决策边界前请先读 PRD §15。
特征契约
更新 xgb_classifier.ubj 时,必须与 resources/spec/xgb_features.json 的列名与顺序一致;改特征定义后同步该 JSON,并跑
pytest pipe-demos/spts_pdf_labels/tests/test_physical.py -v(至少包含 test_xgb_feature_names_match_model)。
语义是否变化
taxonomy_version。constants.py 中 bump TAXONOMY_VERSION,并在 Pipe README.md 的 Changelog(M1/M2)表 增加一行(与 PRD §15 一致)。与附录 A 表对齐
代码内常量(如 constants.py 及维度子模块中的默认)应与 README 默认超参数(附录 A 镜像) 表一致;若只改其一,须在 PR 中写明并视为未完成。
合并前验证
dcd pipe test pipe-demos/spts_pdf_labels 与 pytest tools/spts_eval/tests(见根目录 CONTRIBUTING.md / CI)全绿后再合入。