{"id":19253612,"url":"https://github.com/tidymodels/brulee","last_synced_at":"2025-04-05T03:07:54.308Z","repository":{"id":44422206,"uuid":"288842325","full_name":"tidymodels/brulee","owner":"tidymodels","description":"High-Level Modeling Functions with 'torch'","archived":false,"fork":false,"pushed_at":"2025-03-20T12:23:53.000Z","size":8940,"stargazers_count":69,"open_issues_count":9,"forks_count":7,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-29T02:04:20.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://brulee.tidymodels.org/","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/tidymodels.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2020-08-19T21:34:01.000Z","updated_at":"2025-03-20T11:50:28.000Z","dependencies_parsed_at":"2023-02-08T10:45:23.847Z","dependency_job_id":"f83dd3f0-92bb-4cc9-b72d-781134db3353","html_url":"https://github.com/tidymodels/brulee","commit_stats":{"total_commits":127,"total_committers":8,"mean_commits":15.875,"dds":"0.31496062992125984","last_synced_commit":"087129b0a71e63f16137934f89091b4db7fa4351"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fbrulee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fbrulee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fbrulee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fbrulee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidymodels","download_url":"https://codeload.github.com/tidymodels/brulee/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280264,"owners_count":20912967,"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":[],"created_at":"2024-11-09T18:32:08.951Z","updated_at":"2025-04-05T03:07:54.291Z","avatar_url":"https://github.com/tidymodels.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)\n```\n\n# brulee \u003ca href=\"https://brulee.tidymodels.org/\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"139\" alt=\"a dish of creme brulee on a striped background\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/tidymodels/brulee/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidymodels/brulee/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/tidymodels/brulee/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/brulee?branch=main)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n\u003c!-- badges: end --\u003e\n\nThe R `brulee` package contains several basic modeling functions that use the `torch` package infrastructure, such as:\n\n* [neural networks](https://brulee.tidymodels.org/reference/brulee_mlp.html)\n* [linear regression](https://brulee.tidymodels.org/reference/brulee_linear_reg.html)\n* [logistic regression](https://brulee.tidymodels.org/reference/brulee_logistic_reg.html)\n* [multinomial regression](https://brulee.tidymodels.org/reference/brulee_multinomial_reg.html)\n\n\n## Installation\n\nYou can install the released version of brulee from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"brulee\")\n```\n\nAnd the development version from [GitHub](https://github.com/tidymodels/brulee) with:\n\n``` r\n# install.packages(\"pak\")\npak::pak(\"tidymodels/brulee\")\n```\n## Example\n\n`brulee` has formula, x/y, and recipe user interfaces for each function. For example:\n\n```{r load, include = FALSE}\nlibrary(brulee)\nlibrary(yardstick)\nlibrary(recipes)\n```\n```{r class-fit-form}\nlibrary(brulee)\nlibrary(recipes)\nlibrary(yardstick)\n\ndata(bivariate, package = \"modeldata\")\nset.seed(20)\nnn_log_biv \u003c- brulee_mlp(Class ~ log(A) + log(B), data = bivariate_train, \n                         epochs = 150, hidden_units = 3)\n\n# We use the tidymodels semantics to always return a tibble when predicting\npredict(nn_log_biv, bivariate_test, type = \"prob\") %\u003e% \n  bind_cols(bivariate_test) %\u003e% \n  roc_auc(Class, .pred_One)\n```\n\nA recipe can also be used if the data require some sort of preprocessing (e.g., indicator variables, transformations, or standardization): \n\n```{r class-fit-rec}\nlibrary(recipes)\n\nrec \u003c- \n  recipe(Class ~ ., data = bivariate_train) %\u003e%  \n  step_YeoJohnson(all_numeric_predictors()) %\u003e% \n  step_normalize(all_numeric_predictors())\n\nset.seed(20)\nnn_rec_biv \u003c- brulee_mlp(rec, data = bivariate_train, \n                         epochs = 150, hidden_units = 3)\n\n# A little better\npredict(nn_rec_biv, bivariate_test, type = \"prob\") %\u003e% \n  bind_cols(bivariate_test) %\u003e% \n  roc_auc(Class, .pred_One)\n```\n\n## Code of Conduct\n  \nPlease note that the brulee project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Fbrulee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidymodels%2Fbrulee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Fbrulee/lists"}