themis
Recipe steps for dealing with unbalanced data in R classification models
themis is back to adding real resampling algorithms after a documentation-heavy stretch.
◆Recent moves
- 10d ago
themis 1.1.0 adds cluster-centroid and CNN under-sampling
Two new under-sampling steps land together: step_cluster_centroids() runs k-means within each majority class and keeps one representative per cluster, either the centroid or its nearest observation, and step_cnn() adds condensed nearest neighbour. Both follow the package's convention of a recipes step plus a standalone function.
View source ↗ - 1y ago
themis 1.0.3 corrects resampling direction in documentation
Documentation accuracy work — correcting majority-to-minority direction, routing tidy method help to the right topic, describing return values properly — plus message translation. No behavioural change.
View source ↗ - 2y ago
themis 1.0.2 makes internal consistency and speed changes
Internal consistency changes with slight speed gains, described in a single line. Nothing users would notice beyond marginally faster steps.
View source ↗ - 3y ago
themis 1.0.1 fixes upsampling errors when none is needed
Fixes upsampling functions erroring when no upsampling was actually needed, and documents which step arguments are tunable. Small but the error case would have broken pipelines on already-balanced data.
View source ↗ - 4y ago
themis 1.0.0 adds case weights to up- and down-sampling
Case weights support arrives for step_upsample() and step_downsample(), aligning themis with the case-weight capability tidymodels was adding across the board at the time.
View source ↗ - 4y ago
themis 0.2.2 rewrites tomek() for multiclass, drops a dependency
tomek() is added and rewritten to apply across multiple classes, which removes the unbalanced package as a dependency entirely. A reimplementation that buys both wider applicability and a lighter dependency tree.
View source ↗