{"id":27301548,"url":"https://github.com/paithiov909/baritsu","last_synced_at":"2026-02-27T15:41:30.639Z","repository":{"id":212765950,"uuid":"731018056","full_name":"paithiov909/baritsu","owner":"paithiov909","description":"Wrappers for the 'mlpack' R package; at times and in some situations, baritsu may be more powerful than a swiss army knife","archived":false,"fork":false,"pushed_at":"2025-02-23T05:44:26.000Z","size":5502,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T06:25:58.192Z","etag":null,"topics":["r","r-package","tidymodels"],"latest_commit_sha":null,"homepage":"https://paithiov909.github.io/baritsu/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paithiov909.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-13T07:16:53.000Z","updated_at":"2025-02-23T05:39:53.000Z","dependencies_parsed_at":"2024-01-12T20:45:48.056Z","dependency_job_id":"9d697553-c13f-4166-bb47-97c8bca47c27","html_url":"https://github.com/paithiov909/baritsu","commit_stats":null,"previous_names":["paithiov909/baritsu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paithiov909%2Fbaritsu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paithiov909%2Fbaritsu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paithiov909%2Fbaritsu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paithiov909%2Fbaritsu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paithiov909","download_url":"https://codeload.github.com/paithiov909/baritsu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505955,"owners_count":21115354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","r-package","tidymodels"],"created_at":"2025-04-12T01:46:45.316Z","updated_at":"2026-02-27T15:41:30.633Z","avatar_url":"https://github.com/paithiov909.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\npkgload::load_all()\n```\n\n# baritsu\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n[![R-CMD-check](https://github.com/paithiov909/baritsu/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/paithiov909/baritsu/actions/workflows/R-CMD-check.yaml)\n[![codecov](https://codecov.io/gh/paithiov909/baritsu/branch/main/graph/badge.svg?token=LWH2AFDEMY)](https://app.codecov.io/gh/paithiov909/baritsu)\n\u003c!-- badges: end --\u003e\n\nThe main goal of baritsu is to implement wrappers for [mlpack](https://www.mlpack.org/doc/stable/r_documentation.html) that allows formula as their argument.\nAlso, baritsu provides [parsnip](https://parsnip.tidymodels.org/) engines of those wrappers, so they can be used with [tidymodels](https://www.tidymodels.org/) workflows.\n\n## Installation\n\nYou can install the development version of baritsu from [GitHub](https://github.com/) with:\n\n``` r\nremotes::install_github(\"paithiov909/baritsu\")\n```\n\n## Example\n\nThis is a basic example which shows you how to solve a common problem:\n\n```{r example}\nsuppressPackageStartupMessages({\n  require(tidymodels)\n  require(baritsu)\n})\n\ndata(\"penguins\", package = \"modeldata\")\n\nset.seed(1218)\ndata_split \u003c- initial_split(penguins, strata = species)\npenguins_train \u003c- training(data_split)\npenguins_test \u003c- testing(data_split)\n\nrec \u003c-\n  recipe(\n    species ~ .,\n    data = penguins_train\n  ) |\u003e\n  step_impute_median(all_numeric_predictors()) |\u003e\n  step_impute_mode(all_nominal_predictors())\n\nspec \u003c-\n  decision_tree(\n    tree_depth = 0,\n    min_n = 5\n  ) |\u003e\n  set_engine(\"baritsu\") |\u003e\n  set_mode(\"classification\")\n\ntranslate(spec)\n\nwf_fit \u003c- workflow() |\u003e\n  add_recipe(rec) |\u003e\n  add_model(spec) |\u003e\n  fit(penguins_train)\n\npred \u003c- augment(wf_fit, penguins_test) |\u003e\n  dplyr::select(species, .pred_class)\n\npred\n\nf_meas(pred, truth = species, estimate = .pred_class)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaithiov909%2Fbaritsu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaithiov909%2Fbaritsu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaithiov909%2Fbaritsu/lists"}