Repository navigation
15/ Defaults and dependencies: no rebalancing and serial by default; five packages to Imports, three dropped - #141
Draft
ellispatrick wants to merge 4 commits into
Draft
ellispatrick wants to merge 4 commits into
ellispatrick wants to merge 4 commits into
Conversation
This was referenced Oct 10, 2026
ellispatrick
force-pushed
the
review/integration
branch
from
October 10, 2026 22:47
d6285db to
e5b3900
Compare
ellispatrick
force-pushed
the
review/15-defaults-deps
branch
from
October 10, 2026 22:47
42371da to
21cdab9
Compare
…direct runTest calls) runTests and crossValidate never applied the downsampling default; only a direct runTest call did. The default now matches what cross-validation does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TfsjwkbDbHkX4kJZNe4ER4
…fter set.seed (changes results of default runs) bpparam() gave as many workers as the computer has cores less two (125 on a large server) and no seed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TfsjwkbDbHkX4kJZNe4ER4
… and survival move from Depends to Imports; ggpubr, reshape2 and broom are dropped - train, Surv and DataFrame are re-exported, so they work after library(ClassifyR) alone. - crissCrossPlot draws its two heatmaps as facets of one ggplot (shared legend) instead of ggpubr::ggarrange, and builds its long table without reshape2::melt. - easyHard builds its coefficient table from summary(glm) instead of broom::tidy (same columns); the "full" mode now returns a DataFrame, as documented. - Examples and the vignette name the package of functions that are no longer attached (BiocParallel::SnowParam, MultiAssayExperiment::MultiAssayExperiment, S4Vectors::Pairs, S4Vectors::mcols). The vignette also says that runTests runs on one core by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TfsjwkbDbHkX4kJZNe4ER4
…ot those whose coefficients sum to a non-zero value Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TfsjwkbDbHkX4kJZNe4ER4
ellispatrick
force-pushed
the
review/15-defaults-deps
branch
from
October 14, 2026 00:20
21cdab9 to
607e88e
Compare
ellispatrick
force-pushed
the
review/integration
branch
from
October 14, 2026 00:20
e5b3900 to
b4870ae
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crossValidate results are unchanged; defaults of runTest and runTests change.
ModellingParams()no longer downsamples by default.CrossValParams()runs on one core by default.Why
Ellis Patrick's decisions, ProjectClassifyR
docs/DECISIONS.md, 10 October 2026:runTestsandcrossValidatenever applied the downsampling default; only a directrunTestcall did (audit Q-C1).bpparam()gave as many workers as the computer has cores, less two (125 on our server), and no seed.runTestsruns were not reproducible.set.seed.What changes
ModellingParams(balancing = c("none", "downsample", "upsample")):runTestcalls no longer downsample the training samples unless asked.CrossValParams(parallelParams = SerialParam()):MulticoreParam(workers = 4, RNGseed = 1)).crossValidateis unaffected; it already built its own seeded parameter.library(ClassifyR)attaches 1 package instead of 15, and puts 52 objects on the search path instead of 1,602.train,SurvandDataFrameare re-exported, so code using them keeps working.SerialParam,MulticoreParam,MultiAssayExperiment,colData,mcolsorPairsdirectly now needlibrary()of that package, orpkg::.crissCrossPlotdraws its two heatmaps (feature selection and random features) as two facets of one ggplot with a shared legend. Before, ggarrange combined two plots.easyHardmakes the coefficient table (term, estimate, std.error, statistic, p.value) fromsummary(glm). The"full"mode returns aDataFrame, as documented; it returned a tibble.easyHard(fitMode = "full"): the lambda filter keeps lambdas at which any coefficient is not zero. The signed sum could be zero by cancellation.Evidence
easyHard: single and full modes on asthma with clinical covariates are identical to the broom version.crissCrossPlot:modelTrain), the plot is identical to before.modelTestwith random features), it shows the same tiles, values and diagonal outlines as before, in two facets with one legend.scripts/structure/deps_evidence.R,results/structure/.🤖 Generated with Claude Code
https://claude.ai/code/session_01TfsjwkbDbHkX4kJZNe4ER4