Skip to content

Fix name pulling in methods_loo.R - #1246

Merged
strengejacke merged 1 commit into
mainfrom
loocomparefixnames
Aug 17, 2026
Merged

Fix name pulling in methods_loo.R#1246
strengejacke merged 1 commit into
mainfrom
loocomparefixnames

Conversation

@DominiqueMakowski

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 15, 2026 19:36
Comment thread R/methods_loo.R

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how model_parameters.compare.loo() determines the model names when converting a loo_compare object to a data frame, preferring an explicit model column when present (instead of relying only on row names).

Changes:

  • Extract model names from x[["model"]] when available; otherwise fall back to rownames(x).
  • Use the extracted names to populate the output Name column.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread R/methods_loo.R
@strengejacke
strengejacke merged commit a041264 into main Aug 17, 2026
8 of 22 checks passed
@strengejacke
strengejacke deleted the loocomparefixnames branch August 17, 2026 09:08
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.

3 participants