{
  "_id": "6a48c449e06c18f0a654ac5e",
  "Package": "mlexperiments",
  "Title": "Machine Learning Experiments",
  "Version": "1.0.0",
  "Authors@R": "person(\"Lorenz A.\", \"Kapsner\", , \"lorenz.kapsner@gmail.com\", role = c(\"cre\", \"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-1866-860X\"))",
  "Description": "Provides 'R6' objects to perform parallelized\nhyperparameter optimization and cross-validation.\nHyperparameter optimization can be performed with Bayesian\noptimization (via 'rBayesianOptimization'\n<https://cran.r-project.org/package=rBayesianOptimization>) and\ngrid search. The optimized hyperparameters can be validated\nusing k-fold cross-validation. Alternatively, hyperparameter\noptimization and validation can be performed with nested\ncross-validation. While 'mlexperiments' focuses on core\nwrappers for machine learning experiments, additional learner\nalgorithms can be supplemented by inheriting from the provided\nlearner base class.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/kapsner/mlexperiments",
  "BugReports": "https://github.com/kapsner/mlexperiments/issues",
  "VignetteBuilder": "quarto",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "false",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "SystemRequirements": "Quarto command line tools\n(https://github.com/quarto-dev/quarto-cli).",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://kapsner.r-universe.dev",
  "Date/Publication": "2026-01-16 15:19:59 UTC",
  "RemoteUrl": "https://github.com/kapsner/mlexperiments",
  "RemoteRef": "HEAD",
  "RemoteSha": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-04 07:32:12 UTC",
    "User": "root"
  },
  "Author": "Lorenz A. Kapsner [cre, aut, cph] (ORCID:\n<https://orcid.org/0000-0003-1866-860X>)",
  "Maintainer": "Lorenz A. Kapsner <lorenz.kapsner@gmail.com>",
  "_user": "kapsner",
  "_type": "src",
  "_file": "mlexperiments_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/d0f8d86dfe3305d934b12f089490de7d1eaf43f10330438824f587c996945af4",
  "_filesize": 415828,
  "_sha256": "d0f8d86dfe3305d934b12f089490de7d1eaf43f10330438824f587c996945af4",
  "_expires": "2026-10-12T08:28:55.000Z",
  "_created": "2026-07-04T07:32:12.000Z",
  "_published": "2026-07-04T08:28:57.610Z",
  "_jobs": [
    {
      "job": 85114355857,
      "time": 402,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8079680148"
    },
    {
      "job": 85114355859,
      "time": 406,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079680594"
    },
    {
      "job": 85114355855,
      "time": 315,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8080015432"
    },
    {
      "job": 85114355865,
      "time": 365,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080031008"
    },
    {
      "job": 85114094904,
      "time": 229,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079628282"
    },
    {
      "job": 85114355858,
      "time": 154,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8079648336"
    },
    {
      "job": 85114355849,
      "time": 406,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8079680464"
    },
    {
      "job": 85114355863,
      "time": 391,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8079678627"
    },
    {
      "job": 85114355851,
      "time": 376,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8079676777"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207",
  "_status": "success",
  "_upstream": "https://github.com/kapsner/mlexperiments",
  "_commit": {
    "id": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
    "author": "kapsner <lorenz.kapsner@gmail.com>",
    "committer": "kapsner <lorenz.kapsner@gmail.com>",
    "message": "fix: skipping examples with suggested pkg\n\nif not installed\n",
    "time": 1768576799
  },
  "_maintainer": {
    "name": "Lorenz A. Kapsner",
    "email": "lorenz.kapsner@gmail.com",
    "login": "kapsner",
    "orcid": "0000-0003-1866-860X",
    "description": "Medical Data Scientist.",
    "uuid": 44973495
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "kdry",
      "role": "Imports"
    },
    {
      "package": "progress",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "splitTools",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "class",
      "role": "Suggests"
    },
    {
      "package": "datasets",
      "role": "Suggests"
    },
    {
      "package": "lintr",
      "role": "Suggests"
    },
    {
      "package": "measures",
      "role": "Suggests"
    },
    {
      "package": "mlbench",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "rBayesianOptimization",
      "role": "Suggests"
    },
    {
      "package": "rpart",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.1",
      "role": "Suggests"
    }
  ],
  "_owner": "kapsner",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-36",
      "n": 15
    },
    {
      "week": "2025-37",
      "n": 3
    },
    {
      "week": "2025-42",
      "n": 5
    },
    {
      "week": "2025-49",
      "n": 3
    },
    {
      "week": "2026-03",
      "n": 21
    }
  ],
  "_tags": [
    {
      "name": "v0.0.6",
      "date": "2025-09-06"
    },
    {
      "name": "v0.0.7",
      "date": "2025-09-08"
    },
    {
      "name": "v0.0.8",
      "date": "2025-10-15"
    },
    {
      "name": "v1.0.0",
      "date": "2026-01-16"
    }
  ],
  "_topics": [
    "cross-validation",
    "experiment",
    "hyperparameter-optimization",
    "hyperparameter-tuning",
    "machine-learning",
    "nested",
    "quarto"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "kapsner",
      "count": 231,
      "uuid": 44973495
    }
  ],
  "_userbio": {
    "uuid": 44973495,
    "type": "user",
    "name": "kapsner",
    "followers": 56,
    "description": "Medical Data Scientist."
  },
  "_downloads": {
    "count": 595,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mlexperiments"
  },
  "_devurl": "https://github.com/kapsner/mlexperiments",
  "_searchresults": 50,
  "_quarto": true,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mlexperiments.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kapsner/mlexperiments",
  "_realowner": "kapsner",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.2",
      "date": "2023-06-10"
    },
    {
      "version": "0.0.3",
      "date": "2024-03-07"
    },
    {
      "version": "0.0.4",
      "date": "2024-07-05"
    },
    {
      "version": "0.0.5",
      "date": "2025-03-03"
    },
    {
      "version": "0.0.6",
      "date": "2025-09-06"
    },
    {
      "version": "0.0.7",
      "date": "2025-09-09"
    },
    {
      "version": "0.0.8",
      "date": "2025-10-15"
    },
    {
      "version": "1.0.0",
      "date": "2026-01-16"
    }
  ],
  "_exports": [
    "handle_cat_vars",
    "LearnerGlm",
    "LearnerKnn",
    "LearnerLm",
    "LearnerRpart",
    "metric",
    "metric_types_helper",
    "MLCrossValidation",
    "MLLearnerBase",
    "MLNestedCV",
    "MLTuneParameters",
    "performance",
    "predictions",
    "validate_fold_equality"
  ],
  "_help": [
    {
      "page": "handle_cat_vars",
      "title": "handle_cat_vars",
      "topics": [
        "handle_cat_vars"
      ]
    },
    {
      "page": "LearnerGlm",
      "title": "LearnerGlm R6 class",
      "topics": [
        "LearnerGlm"
      ]
    },
    {
      "page": "LearnerKnn",
      "title": "LearnerKnn R6 class",
      "topics": [
        "LearnerKnn"
      ]
    },
    {
      "page": "LearnerLm",
      "title": "LearnerLm R6 class",
      "topics": [
        "LearnerLm"
      ]
    },
    {
      "page": "LearnerRpart",
      "title": "LearnerRpart R6 class",
      "topics": [
        "LearnerRpart"
      ]
    },
    {
      "page": "metric",
      "title": "metric",
      "topics": [
        "metric"
      ]
    },
    {
      "page": "metric_types_helper",
      "title": "metric_types_helper",
      "topics": [
        "metric_types_helper"
      ]
    },
    {
      "page": "MLBase",
      "title": "Basic R6 Class for the mlexperiments package",
      "topics": [
        "MLBase"
      ]
    },
    {
      "page": "MLCrossValidation",
      "title": "R6 Class to perform cross-validation experiments",
      "topics": [
        "MLCrossValidation"
      ]
    },
    {
      "page": "MLExperimentsBase",
      "title": "R6 Class on which the experiment classes are built on",
      "topics": [
        "MLExperimentsBase"
      ]
    },
    {
      "page": "MLLearnerBase",
      "title": "R6 Class to construct learners",
      "topics": [
        "MLLearnerBase"
      ]
    },
    {
      "page": "MLNestedCV",
      "title": "R6 Class to perform nested cross-validation experiments",
      "topics": [
        "MLNestedCV"
      ]
    },
    {
      "page": "MLTuneParameters",
      "title": "R6 Class to perform hyperparameter tuning experiments",
      "topics": [
        "MLTuneParameters"
      ]
    },
    {
      "page": "performance",
      "title": "performance",
      "topics": [
        "performance"
      ]
    },
    {
      "page": "predictions",
      "title": "predictions",
      "topics": [
        "predictions"
      ]
    },
    {
      "page": "validate_fold_equality",
      "title": "validate_fold_equality",
      "topics": [
        "validate_fold_equality"
      ]
    }
  ],
  "_readme": "https://github.com/kapsner/mlexperiments/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "base64enc",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "codetools",
    "colorspace",
    "cpp11",
    "crayon",
    "data.table",
    "digest",
    "doParallel",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "foreach",
    "foreign",
    "Formula",
    "fs",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "Hmisc",
    "hms",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "iterators",
    "jquerylib",
    "jsonlite",
    "kdry",
    "knitr",
    "labeling",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "nnet",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "splitTools",
    "stringi",
    "stringr",
    "tinytex",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "mlexperiments_knn_binary.qmd",
      "filename": "mlexperiments_knn_binary.html",
      "title": "KNN: Binary Classification",
      "engine": "quarto::html",
      "headings": [
        "Preprocessing",
        "Import and Prepare Data",
        "General Configurations",
        "Generate Training- and Test Data",
        "Generate Training Data Folds",
        "Experiments",
        "Prepare Experiments",
        "Hyperparameter Tuning",
        "Grid Search",
        "Bayesian Optimization",
        "k-Fold Cross Validation",
        "Nested Cross Validation",
        "Inner Grid Search",
        "Inner Bayesian Optimization"
      ],
      "created": "2024-05-29 14:48:37",
      "modified": "2026-01-15 16:20:05",
      "commits": 4
    },
    {
      "source": "mlexperiments_knn_multiclass.qmd",
      "filename": "mlexperiments_knn_multiclass.html",
      "title": "KNN: Multiclass Classification",
      "engine": "quarto::html",
      "headings": [
        "Preprocessing",
        "Import and Prepare Data",
        "General Configurations",
        "Generate Training- and Test Data",
        "Generate Training Data Folds",
        "Experiments",
        "Prepare Experiments",
        "Hyperparameter Tuning",
        "Grid Search",
        "Bayesian Optimization",
        "k-Fold Cross Validation",
        "Nested Cross Validation",
        "Inner Grid Search",
        "Inner Bayesian Optimization"
      ],
      "created": "2024-05-29 14:48:37",
      "modified": "2026-01-15 16:20:05",
      "commits": 6
    },
    {
      "source": "mlexperiments_starter.qmd",
      "filename": "mlexperiments_starter.html",
      "title": "mlexperiments: Getting Started",
      "engine": "quarto::html",
      "headings": [
        "General Overview",
        "Steps to Prepare an Algorithm for Use with mlexperiments",
        "The fit Method",
        "The predict Method",
        "The cross_validation Method",
        "The bayesian_scoring_function Method",
        "Finally, Create an R6 Class for the Learner",
        "Examples",
        "Preparations",
        "Hyperparameter Tuning",
        "Bayesian Tuning",
        "Grid Search",
        "Cross-Validation",
        "Nested Cross-Validation",
        "Inner Bayesian Optimization",
        "Inner Grid Search"
      ],
      "created": "2024-05-29 14:48:37",
      "modified": "2026-01-16 10:01:48",
      "commits": 9
    },
    {
      "source": "mlexperiments_rpart_binary.qmd",
      "filename": "mlexperiments_rpart_binary.html",
      "title": "rpart: Binary Classification",
      "engine": "quarto::html",
      "headings": [
        "Preprocessing",
        "Import and Prepare Data",
        "General Configurations",
        "Generate Training- and Test Data",
        "Generate Training Data Folds",
        "Experiments",
        "Prepare Experiments",
        "Hyperparameter Tuning",
        "Grid Search",
        "Bayesian Optimization",
        "k-Fold Cross Validation",
        "Nested Cross Validation",
        "Inner Grid Search",
        "Inner Bayesian Optimization",
        "Comparison with Logistic Regression",
        "Test Fold Equality",
        "Predict Outcome in Holdout Test Dataset",
        "Evaluate Performance on Holdout Test Dataset"
      ],
      "created": "2024-05-29 14:48:37",
      "modified": "2026-01-15 16:20:05",
      "commits": 4
    },
    {
      "source": "mlexperiments_rpart_multiclass.qmd",
      "filename": "mlexperiments_rpart_multiclass.html",
      "title": "rpart: Multiclass Classification",
      "engine": "quarto::html",
      "headings": [
        "Preprocessing",
        "Import and Prepare Data",
        "General Configurations",
        "Generate Training- and Test Data",
        "Generate Training Data Folds",
        "Experiments",
        "Prepare Experiments",
        "Hyperparameter Tuning",
        "Grid Search",
        "Bayesian Optimization",
        "k-Fold Cross Validation",
        "Nested Cross Validation",
        "Inner Grid Search",
        "Inner Bayesian Optimization",
        "Appendix I: Grid-Search with Target Weigths",
        "Appendix II: k-Fold Cross Validation with Target Weigths"
      ],
      "created": "2024-05-29 14:48:37",
      "modified": "2026-01-15 16:20:05",
      "commits": 6
    },
    {
      "source": "mlexperiments_rpart_regression.qmd",
      "filename": "mlexperiments_rpart_regression.html",
      "title": "rpart: Regression",
      "engine": "quarto::html",
      "headings": [
        "Preprocessing",
        "Import and Prepare Data",
        "General Configurations",
        "Generate Training- and Test Data",
        "Generate Training Data Folds",
        "Experiments",
        "Prepare Experiments",
        "Hyperparameter Tuning",
        "Grid Search",
        "Bayesian Optimization",
        "k-Fold Cross Validation",
        "Nested Cross Validation",
        "Inner Grid Search",
        "Inner Bayesian Optimization",
        "Comparison with Linear Regression",
        "Test Fold Equality",
        "Predict Outcome in Holdout Test Dataset",
        "Evaluate Performance on Holdout Test Dataset"
      ],
      "created": "2024-05-29 14:48:37",
      "modified": "2026-01-15 16:20:05",
      "commits": 5
    }
  ],
  "_score": 7.352182518111363,
  "_indexed": true,
  "_nocasepkg": "mlexperiments",
  "_universes": [
    "kapsner"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-04T07:34:44.000Z",
      "distro": "resolute",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/bf43ff655de8206883556c39513efd2eac67dfc8a23d0d40c26dbd24bf3b86ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-04T07:34:44.000Z",
      "distro": "resolute",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/c1a0966d37aa688a356acc6a10401da9a4f72af6d64b62f6a629d8543cfabf73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-04T08:22:57.000Z",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/ec88334742d49aa4f0dfe7b1561a54cb47e7b90d1f0a552874b288db583acb6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-04T08:24:32.000Z",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/61887aaa1d6b8e12d2e47ae25f97d8c08d8d06b0040195850ad7d9814cb74af4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-07-04T07:35:06.000Z",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/8440b0267880486b03179b904f45d29f42a5a6a477dcc580ad00ade999cd88c8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-04T07:33:51.000Z",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/c735daba61b0010d1e770d591baae012f6a7e5df4556b10d995df10dbce04ee3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-04T07:33:46.000Z",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/e18e59c71795d39d0dd2866e10d5ea295b54001fa3d1a711d417ae9d855505aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-04T07:33:42.000Z",
      "commit": "ea1cb9dc1ab3be52d16c77055718db8bd8beb26b",
      "fileid": "https://r2.ropensci.org/c59384abb8bad3f67c6e963368c535fa45ec8376eae81f6759f06834c7dd0976",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kapsner/actions/runs/28699134207"
    }
  ]
}