Package: SWORD 0.1.0
SWORD: Support Vector Machine Weighted Oblique Random Decision Forests
Implements SWORD (Support vector machine Weighted Oblique Random Decision forests), a random forest method for regression based on TORS (Tree Oblique for Regression with weighted SVM) oblique regression trees. At each internal node a Weighted-SVM classifier with a linear kernel defines the oblique splitting hyperplane as a sparse linear combination of predictors. The C++ coordinate-descent solver provides fast training. Variable importance is computed via OIW-VI (Oblique Impurity-Weighted Variable Importance). Provides tree fitting (TORS), forest fitting (SWORD), prediction, and variable importance (VI_SWORD). Parallel tree fitting is supported via the 'future'/'furrr' framework. The SWORD method is described in Carta and Frigau (accepted, in press) 'Oblique Random Forests for Regression via Weighted Support Vector Machine', Advances in Data Analysis and Classification. The TORS algorithm is described in Carta and Frigau (2025) <doi:10.1007/s00180-025-01647-w>. The weighted SVM is based on Yang, Song and Cao (2005) <doi:10.1109/IJCNN.2005.1555965> and the 'WeightSVM' package by Xu et al. (2024) <doi:10.32614/CRAN.package.WeightSVM>.
Authors:
SWORD_0.1.0.tar.gz
SWORD_0.1.0.zip(r-4.7-x86_64)SWORD_0.1.0.zip(r-4.7-arm64)SWORD_0.1.0.zip(r-4.6-x86_64)SWORD_0.1.0.zip(r-4.6-arm64)SWORD_0.1.0.zip(r-4.5-x86_64)
SWORD_0.1.0.tgz(r-4.6-x86_64)SWORD_0.1.0.tgz(r-4.6-arm64)SWORD_0.1.0.tgz(r-4.5-x86_64)SWORD_0.1.0.tgz(r-4.5-arm64)
SWORD_0.1.0.tar.gz(r-4.7-arm64)SWORD_0.1.0.tar.gz(r-4.7-x86_64)SWORD_0.1.0.tar.gz(r-4.6-arm64)SWORD_0.1.0.tar.gz(r-4.6-x86_64)
SWORD_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
SWORD/json (API)
| # Install 'SWORD' in R: |
| install.packages('SWORD', repos = c('https://acarta88.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/acarta88/sword-package/issues
Last updated from:68cf524fa4. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 136 | ||
| linux-devel-x86_64 | OK | 135 | ||
| source / vignettes | OK | 201 | ||
| linux-release-arm64 | OK | 130 | ||
| linux-release-x86_64 | OK | 123 | ||
| macos-release-arm64 | OK | 204 | ||
| macos-release-x86_64 | OK | 409 | ||
| macos-oldrel-arm64 | OK | 199 | ||
| macos-oldrel-x86_64 | OK | 340 | ||
| windows-devel-arm64 | OK | 373 | ||
| windows-devel-x86_64 | OK | 144 | ||
| windows-release-arm64 | OK | 381 | ||
| windows-release-x86_64 | OK | 112 | ||
| windows-oldrel-x86_64 | OK | 127 | ||
| wasm-release | OK | 99 |
Exports:pdp_swordplot_oob_fitplot_tors_textplot_tors_visnetplot_vi_swordSWORDTORSVI_SWORD
Dependencies:Rcpp
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Partial dependence plot for a SWORD forest | pdp_sword |
| OOB predicted vs observed scatter plot | plot_oob_fit |
| Indented text representation of a TORS tree | plot_tors_text |
| Interactive zoomable visualisation of a TORS tree | plot_tors_visnet |
| Variable importance barplot for a SWORD forest | plot_vi_sword |
| Plot method for a SWORD forest | plot.sword_flat |
| Plot a fitted TORS tree | plot.tors_flat |
| Predict from a fitted SWORD forest | predict.sword_flat |
| Predict from a fitted TORS tree | predict.tors_flat |
| Fit a SWORD forest | print.sword_flat summary.sword_flat SWORD |
| Fit a TORS oblique regression tree | print.tors_flat summary.tors_flat TORS |
| Oblique Impurity-Weighted Variable Importance (OIW-VI) | VI_SWORD |
