{
  "_id": "6ae37fef95ca2370cc8ce79d",
  "Package": "SWORD",
  "Type": "Package",
  "Title": "Support Vector Machine Weighted Oblique Random Decision Forests",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Andrea\", \"Carta\", role = c(\"aut\", \"cre\"), email = \"andrea.carta88@unica.it\",\ncomment = c(ORCID = \"0000-0003-4077-1822\")),\nperson(\"Luca\", \"Frigau\", role = \"aut\"))",
  "Description": "Implements SWORD (Support vector machine Weighted Oblique\nRandom Decision forests), a random forest method for regression\nbased on TORS (Tree Oblique for Regression with weighted SVM)\noblique regression trees. At each internal node a Weighted-SVM\nclassifier with a linear kernel defines the oblique splitting\nhyperplane as a sparse linear combination of predictors. The\nC++ coordinate-descent solver provides fast training. Variable\nimportance is computed via OIW-VI (Oblique Impurity-Weighted\nVariable Importance). Provides tree fitting (TORS), forest\nfitting (SWORD), prediction, and variable importance\n(VI_SWORD). Parallel tree fitting is supported via the\n'future'/'furrr' framework. The SWORD method is described in\nCarta and Frigau (accepted, in press) 'Oblique Random Forests\nfor Regression via Weighted Support Vector Machine', Advances\nin Data Analysis and Classification. The TORS algorithm is\ndescribed in Carta and Frigau (2025)\n<doi:10.1007/s00180-025-01647-w>. The weighted SVM is based on\nYang, Song and Cao (2005) <doi:10.1109/IJCNN.2005.1555965> and\nthe 'WeightSVM' package by Xu et al. (2024)\n<doi:10.32614/CRAN.package.WeightSVM>.",
  "License": "GPL-3",
  "URL": "https://github.com/acarta88/sword-package",
  "BugReports": "https://github.com/acarta88/sword-package/issues",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-29 17:13:58 UTC",
    "User": "root"
  },
  "Author": "Andrea Carta [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-4077-1822>), Luca Frigau [aut]",
  "Maintainer": "Andrea Carta <andrea.carta88@unica.it>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-10-29 16:16:38 UTC",
  "RemoteUrl": "https://github.com/cran/SWORD",
  "RemoteRef": "HEAD",
  "RemoteSha": "1c58e0d9780f866df7e10046f990001fae11a7ed",
  "_user": "cran",
  "_type": "src",
  "_file": "SWORD_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/7a505bcc268bdba20fe00b558914bf04f024a5bb48007bd0dcf379a3fc2dcd7f",
  "_filesize": 606432,
  "_sha256": "7a505bcc268bdba20fe00b558914bf04f024a5bb48007bd0dcf379a3fc2dcd7f",
  "_expires": "2027-02-06T17:18:37.000Z",
  "_created": "2026-10-29T17:13:58.000Z",
  "_published": "2026-10-29T17:18:39.678Z",
  "_upstream": "https://github.com/cran/SWORD",
  "_status": "success",
  "_maintainer": {
    "name": "Andrea Carta",
    "email": "andrea.carta88@unica.it",
    "login": "acarta88",
    "description": "",
    "uuid": 114926493,
    "orcid": "0000-0003-4077-1822"
  },
  "_jobs": [
    {
      "job": 123608223699,
      "time": 114,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12917762474"
    },
    {
      "job": 123608223769,
      "time": 125,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12917807333"
    },
    {
      "job": 123608223753,
      "time": 107,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12916413947"
    },
    {
      "job": 123608223630,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12917926864"
    },
    {
      "job": 123606179099,
      "time": 213,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12915899662"
    },
    {
      "job": 123608223674,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12918265597"
    },
    {
      "job": 123608223841,
      "time": 216,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12917063842"
    },
    {
      "job": 123608223725,
      "time": 150,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12917568078"
    },
    {
      "job": 123608223805,
      "time": 240,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12916614102"
    },
    {
      "job": 123608223840,
      "time": 112,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12918040928"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808",
  "_commit": {
    "id": "1c58e0d9780f866df7e10046f990001fae11a7ed",
    "author": "Andrea Carta <andrea.carta88@unica.it>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1793290598
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "infotheo",
      "role": "Suggests"
    },
    {
      "package": "furrr",
      "role": "Suggests"
    },
    {
      "package": "progressr",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "visNetwork",
      "role": "Suggests"
    },
    {
      "package": "microbenchmark",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-44",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-10-29"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "acarta88",
      "count": 1,
      "uuid": 114926493
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SWORD"
  },
  "_devurl": "https://github.com/acarta88/sword-package",
  "_searchresults": 3,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/SWORD.html"
  ],
  "_cranurl": false,
  "_exports": [
    "pdp_sword",
    "plot_oob_fit",
    "plot_tors_text",
    "plot_tors_visnet",
    "plot_vi_sword",
    "SWORD",
    "TORS",
    "VI_SWORD"
  ],
  "_help": [
    {
      "page": "pdp_sword",
      "title": "Partial dependence plot for a SWORD forest",
      "topics": [
        "pdp_sword"
      ]
    },
    {
      "page": "plot_oob_fit",
      "title": "OOB predicted vs observed scatter plot",
      "topics": [
        "plot_oob_fit"
      ]
    },
    {
      "page": "plot_tors_text",
      "title": "Indented text representation of a TORS tree",
      "topics": [
        "plot_tors_text"
      ]
    },
    {
      "page": "plot_tors_visnet",
      "title": "Interactive zoomable visualisation of a TORS tree",
      "topics": [
        "plot_tors_visnet"
      ]
    },
    {
      "page": "plot_vi_sword",
      "title": "Variable importance barplot for a SWORD forest",
      "topics": [
        "plot_vi_sword"
      ]
    },
    {
      "page": "plot.sword_flat",
      "title": "Plot method for a SWORD forest",
      "topics": [
        "plot.sword_flat"
      ]
    },
    {
      "page": "plot.tors_flat",
      "title": "Plot a fitted TORS tree",
      "topics": [
        "plot.tors_flat"
      ]
    },
    {
      "page": "predict.sword_flat",
      "title": "Predict from a fitted SWORD forest",
      "topics": [
        "predict.sword_flat"
      ]
    },
    {
      "page": "predict.tors_flat",
      "title": "Predict from a fitted TORS tree",
      "topics": [
        "predict.tors_flat"
      ]
    },
    {
      "page": "SWORD",
      "title": "Fit a SWORD forest",
      "topics": [
        "print.sword_flat",
        "summary.sword_flat",
        "SWORD"
      ]
    },
    {
      "page": "TORS",
      "title": "Fit a TORS oblique regression tree",
      "topics": [
        "print.tors_flat",
        "summary.tors_flat",
        "TORS"
      ]
    },
    {
      "page": "VI_SWORD",
      "title": "Oblique Impurity-Weighted Variable Importance (OIW-VI)",
      "topics": [
        "VI_SWORD"
      ]
    }
  ],
  "_readme": "https://github.com/cran/SWORD/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "intro-sword.Rmd",
      "filename": "intro-sword.html",
      "title": "Getting Started with SWORD",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Data",
        "Fitting a single TORS tree",
        "Tree structure (text)",
        "Tree structure (graph)",
        "Effect of cp on tree size",
        "Effect of n_top_cor on split richness",
        "Fitting a SWORD forest",
        "OOB diagnostics",
        "Convergence curve",
        "OOB predicted vs. observed",
        "Prediction on the test set",
        "Variable importance",
        "Partial dependence plots",
        "Parameter sensitivity in SWORD",
        "Feature selection criterion: relation",
        "Observation weighting: weight_scheme",
        "Feature subsampling per split: rf_var",
        "Randomised top-feature cardinality: rand_ntopcor",
        "Summary comparison",
        "Categorical and character predictors",
        "Formula interface",
        "Summary",
        "References"
      ],
      "created": "2026-10-29 16:16:38",
      "modified": "2026-10-29 16:16:38",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "sword",
  "_universes": [
    "cran",
    "acarta88"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-29T17:15:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/b3b073c824e861acceb7f16d95321e8bbf2cfc30c595042eb9d460ef57809b55",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-29T17:16:03.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/7bf81572ef5aad294c5ba3f5f4c18001b77749de152684a629d86a9f97b07929",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-29T17:15:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/9fb0333edf7eaf3ea9cb5f3002d809981b7bfc127932b05f25439429a31af8a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-29T17:16:06.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/731c12a3f2c45a34221e61235ff7c8b93014f4016f5904a9c609996c598bea9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-29T17:16:06.000Z",
      "arch": "emscripten",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/125ecb933b1289204db7f75f5320e43a7dc18717af8e1a581191f275ca71dc96",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-29T17:17:13.000Z",
      "arch": "aarch64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/a25e4f0b04a5cfe5a16514266206911d1e4d027d020ccf249b39eeec74602d1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-29T17:15:17.000Z",
      "arch": "x86_64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/abd5ee984326babe40e55a7c4f793cfb6c677d37adb5556d3a7efbe7bf6db129",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-29T17:17:36.000Z",
      "arch": "aarch64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/fb4c9ef4dfe6112840ea74fd83dc478ded85c5a9c84de582cb3aef97c3ac0ebe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-29T17:15:16.000Z",
      "arch": "x86_64",
      "commit": "1c58e0d9780f866df7e10046f990001fae11a7ed",
      "fileid": "https://r2.ropensci.org/a47f9d844a7958f37b8422cdae9a9c847ca8caea2eec16ab60cd4d4d70c2be0d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40918738808"
    }
  ]
}