Skip to content

Read the fitted objective with fireSenseUtils::xgbObjective() - #35

Merged
eliotmcintire merged 1 commit into
developmentfrom
xgb-objective-shared
Oct 18, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
xgb-objective-shared

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

One shared function now tells which distribution a fitted model uses, instead of a copy in this module.

Affects: Nothing changes for results; the same error is raised when the distribution cannot be read.

Depends-on: PredictiveEcology/fireSenseUtils#164

Technical details

fitObjective() (fireSense_ignitionPredict.R:273) carried its own lookup of the booster objective (xgb.config(), then attr(, "params")), the same as the one added to fireSense_ignitionFit in its PR 46. It now calls fireSenseUtils::xgbObjective(), written once in fireSenseUtils; the folds-differ and unreadable errors are kept and their tests pass unchanged. Suite: 88 passed, 0 failed on this branch and on development. Floor raised to fireSenseUtils (>= 0.2.3.9104). No version bump.

🤖 Generated with Claude Code

https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6

@eliotmcintire eliotmcintire added enhancement New feature or request backwards compatible Existing code and results keep working unchanged labels Oct 18, 2026
@eliotmcintire
eliotmcintire merged commit 013ad3a into development Oct 18, 2026
9 checks passed
@eliotmcintire
eliotmcintire deleted the xgb-objective-shared branch October 18, 2026 03:13
eliotmcintire added a commit that referenced this pull request Oct 18, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards compatible Existing code and results keep working unchanged enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant