You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: open v2.7.3.9005 dev increment (PR #87)
* test: add three failing tests for gg_variable.randomForest classification (PR #87)
Tests verify that gg_variable.randomForest classification forests produce:
- Per-class vote fraction columns (yhat.setosa, yhat.versicolor, yhat.virginica)
- No bare yhat column for multi-class prediction
- Valid vote fractions (0-1) that row-sum to 1
- Plottable output for multi-xvar case
- Layer_data access on single-xvar plots
All three tests currently FAIL, as expected (TDD red phase).
Implementation fix comes in T2.
* fix: gg_variable.randomForest classification uses object\$votes for yhat.* columns
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: normalise object\$votes rows to defend against norm.votes=FALSE; update stale oob comment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test: add failing tests for plot.gg_variable smooth bugs (PR #87)
* fix: plot.gg_variable binary smooth aes + add multi-class smooth block (#87)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test: add vdiffr snapshots for gg_variable RF classification (PR #87)
* docs: update NEWS for PR #87 — gg_variable RF classification fix
* fix: plot.gg_variable multi-class facets use class names not integer indices
Strip the yhat. prefix from column names when building the outcome column
in the multi-class pivot loop (line ~169), so facet labels show "setosa"/
"versicolor"/"virginica" instead of 1/2/3. Add a regression test that
verifies p@data$outcome contains class names after plotting.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test: tighten patchwork assertion to match corrected plan (#87 Copilot review)
Plan #87 was corrected (via PR #87 Copilot review) to assert patchwork
specifically for the 4-predictor iris default-plot case, rather than the
loose patchwork||ggplot form that wouldn't catch a regression to a bare
list (issue #80). Align the implementation test to match.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: address Copilot review on PR #88 — oob warning + factor level order
- gg_variable.randomForest: replace silent no-op oob override with an
explicit warning when oob=FALSE is supplied, since in-bag class
probabilities are not available via the randomForest API.
- plot.gg_variable: set outcome factor levels from gg_dta_y column order
rather than factor() default (alphabetical), so multi-class facet panels
follow the model's class ordering regardless of locale.
- Add two new tests: oob=FALSE warning, and outcome factor level order.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments