Skip to content

Improve inference stability and validation checks#10

Merged
huangbogeng merged 3 commits into
mainfrom
dev-feature
Apr 21, 2026
Merged

Improve inference stability and validation checks#10
huangbogeng merged 3 commits into
mainfrom
dev-feature

Conversation

@huangbogeng

@huangbogeng huangbogeng commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • c92ab5d docs(changelog): 记录推理稳定性改进
    • 更新了 CHANGELOG.md 的 Unreleased,记录了 panic-free 推理和构造期校验增强。
  • 970d0ec test(xgboost): 补齐官方模型不支持分支覆盖
    • 增加了不支持场景/边界场景测试(booster、objective、num_target、split_type、size_leaf_vector、tree id 等)。
  • 8b2e3d4 refactor(validation): 抽取并复用树拓扑校验
    • 新增共享校验器 src/tree/validation.rs,并在 src/model.rs、src/xgboost_json/loader.rs 复用,去掉重复拓扑校验逻辑。

Checklist

  • I ran cargo fmt --all
  • I ran cargo clippy --all-targets --all-features -- -D warnings
  • I ran cargo test --all-targets --all-features
  • I checked naming against Rust conventions (snake_case modules/functions, UpperCamelCase types, acronym style like Xgb*)
  • I updated docs for user-facing changes
  • I added/updated tests for behavior changes

@huangbogeng huangbogeng merged commit 5cadc84 into main Apr 21, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant