Releases: A2-ai/hyperion.tables
Releases · A2-ai/hyperion.tables
v0.3.0
hyperion.tables 0.3.0
Breaking Changes
apply_summary_spec()no longer has a default forspec. PassSummarySpec()explicitly.
New Features
set_spec_tag_filter()gains anexcludeparameter to remove models by tag
(e.g.,set_spec_tag_filter(exclude = "failed")).- Section rules for summary tables.
section_rules()/set_spec_sections()now work withSummarySpec, enabling model grouping in summary tables (e.g.,"base" %in% tags ~ "Base Models"). Rules are evaluated row-by-row to support list columns liketags. - Section filtering.
set_spec_section_filter()excludes entire sections from both parameter and summary tables. PassNAto also remove rows that didn't match any section rule. set_spec_sections()promoted from TableSpec-only to a common modifier that works on bothTableSpecandSummarySpec.get_spec_section_filter()getter for reading the current section filter.
Bug Fixes
- Fixed crash when multiple section rules mapped to the same label (e.g., two rules both producing
"Base Models"). Duplicate factor levels are now deduplicated before ordering. - Multi-match section warning now only fires when a row matches rules with genuinely different labels. Same-label multi-match (intentional overlap) no longer warns.
katexmoved back to Suggests (from Imports) with a one-time warning when missing, instead of abortingrender_to_gt().
What's Changed
Full Changelog: v0.2.1...v0.3.0
v0.2.1
v0.2.0
hyperion.tables 0.2.0
What's Changed
Full Changelog: v0.1.0...v0.2.0
Breaking Changes
apply_summary_spec()now aborts when no models remain after filtering or the tree is empty, instead of silently returning an empty data frame.compare_with()now aborts whenreference_modeldoes not match any model in the comparison, instead of silently falling through to the default.
Migration Notes (0.2.0)
compare_with(reference_model = ...): use an existing modelrun_nameor label already present in the comparison chain; unmatched values now error.apply_summary_spec(): if your filters or input tree can produce zero models, handle that case before callingapply_summary_spec()instead of relying on an empty-table return.compare_with(labels = ...)in chained comparisons (params1is already a comparison):- length 1: append the new label to existing labels.
- length 2: rename the previous/latest existing label to
labels[1], then appendlabels[2]for the newly added model.
New Diagnostics
compare_with()warns when models share no parameters after joining.- Summary table dOFV calculation warns when a model has multiple
based_onparents, indicating which parent is used. - Footnote about number of observations not matching reference model is now an
rlang::informinstead of footnote. - LRT suppression now emits an informational message with the reason (e.g., "models not in direct lineage", "degrees of freedom is zero").
make_comparison_table()validates the comparison is renderable before building, aborting early with actionable hints if no rows or model columns remain.SummarySpecnow validatesn_decimals_ofvat construction time.
Bug Fixes
- Fixed incorrect LRT p-values in model comparison output.
- Fixed p-value rendering when
dfcolumn is dropped. - Fixed
format_time_columnscrash when all time values are NA in auto mode. - Fixed missing parameter-count values in rows used for dOFV/p-value calculations.
- Fixed summary table generation so one unreadable or unsummarizable model no longer aborts the entire table.
- Fixed cases where model files with extensions were not resolved correctly.
- Fixed
source_dirresolution to use config-relative path resolution, so relative paths inpharos.tomlare handled correctly.
hyperion.tables 0.1.0
Initial release