Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release candidate 0.5.1 #123

Merged
merged 9 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ config.toml
^\.github$
^CODE_OF_CONDUCT\.md$
^LICENSE\.md$
^CRAN-SUBMISSION$
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Package: tidypredict
Title: Run Predictions Inside the Database
Version: 0.5
Version: 0.5.1.9000
Authors@R: c(
person("Edgar", "Ruiz", , "[email protected]", role = c("aut", "cre")),
person("Emil", "Hvitfeldt", , "[email protected]", role = c("aut", "cre")),
person("Edgar", "Ruiz", , "[email protected]", role = "aut"),
person("Max", "Kuhn", , "[email protected]", role = "aut")
)
Description: It parses a fitted 'R' model object, and returns a formula in
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# tidypredict (development version)

# tidypredict 0.5.1

- Exported a number of internal functions to be used in {orbital} package

# tidypredict 0.5

- Changes maintainer to Edgar Ruiz
Expand Down
3 changes: 3 additions & 0 deletions R/model-partykit.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ tidypredict_fit.party <- function(model) {
}

# For {orbital}
#' Extract classprob trees for partykit models
#'
#' For use in orbital package.
#' @keywords internal
#' @export
.extract_partykit_classprob <- function(model) {
Expand Down
3 changes: 3 additions & 0 deletions R/model-xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ tidypredict_fit.xgb.Booster <- function(model) {
}

# For {orbital}
#' Extract processed xgboost trees
#'
#' For use in orbital package.
#' @keywords internal
#' @export
.extract_xgb_trees <- function(model) {
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ tidy(pm)

This 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.

- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).
- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on Posit Community](https://forum.posit.co/new-topic?category_id=15&tags=tidymodels,question).

- If you think you have encountered a bug, please [submit an issue](https://github.com/tidymodels/tidypredict/issues).

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ several databases back-ends, such as MS SQL:
tidypredict_sql(model, dbplyr::simulate_mssql())
```

## <SQL> (39.6862614802529 + (`wt` * -3.19097213898375)) + (`cyl` * -1.5077949682598)
## <SQL> (39.686261480253 + (`wt` * -3.19097213898374)) + (`cyl` * -1.5077949682598)

## Installation

Expand All @@ -47,16 +47,16 @@ remotes::install_github("tidymodels/tidypredict")
number to grow much. The main focus at this time is to add more models
to support.

| Function | Description |
|------------------------------|--------------------------------------------------------------------------------|
| `tidypredict_fit()` | Returns an R formula that calculates the prediction |
| `tidypredict_sql()` | Returns a SQL query based on the formula from `tidypredict_fit()` |
| `tidypredict_to_column()` | Adds a new column using the formula from `tidypredict_fit()` |
| `tidypredict_test()` | Tests `tidyverse` predictions against the model’s native `predict()` function |
| `tidypredict_interval()` | Same as `tidypredict_fit()` but for intervals (only works with `lm` and `glm`) |
| Function | Description |
|----|----|
| `tidypredict_fit()` | Returns an R formula that calculates the prediction |
| `tidypredict_sql()` | Returns a SQL query based on the formula from `tidypredict_fit()` |
| `tidypredict_to_column()` | Adds a new column using the formula from `tidypredict_fit()` |
| `tidypredict_test()` | Tests `tidyverse` predictions against the model’s native `predict()` function |
| `tidypredict_interval()` | Same as `tidypredict_fit()` but for intervals (only works with `lm` and `glm`) |
| `tidypredict_sql_interval()` | Same as `tidypredict_sql()` but for intervals (only works with `lm` and `glm`) |
| `parse_model()` | Creates a list spec based on the R model |
| `as_parsed_model()` | Prepares an object to be recognized as a parsed model |
| `parse_model()` | Creates a list spec based on the R model |
| `as_parsed_model()` | Prepares an object to be recognized as a parsed model |

## How it works

Expand Down Expand Up @@ -146,8 +146,8 @@ Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
By contributing to this project, you agree to abide by its terms.

- For questions and discussions about tidymodels packages, modeling, and
machine learning, please [post on RStudio
Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).
machine learning, please [post on Posit
Community](https://forum.posit.co/new-topic?category_id=15&tags=tidymodels,question).

- If you think you have encountered a bug, please [submit an
issue](https://github.com/tidymodels/tidypredict/issues).
Expand Down
18 changes: 3 additions & 15 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
## Release summary

- Addresses CRAN Package Test Results issues

- Changes maintainer to Edgar Ruiz

- Updates author's email addresses.

- Removes dependency with `stringr`

- Fixes issue with `earth` parsed_models (#108)

- Addresses issues with XGBoost models

- Improvements to XGBoosts tests
- Exported a number of internal functions to be used in {orbital} package

## Comments

* Having Max as the maintainer will guarantee good follow through for any communications with CRAN. This is the reason why there is another update is such short order from the previous update in CRAN. Thank you for your understanding.
- Switches maintainer to Emil Hvitfeldt

## R CMD check results

* 0 errors | 0 warnings | 0 notes

## revdepcheck results

We checked 2 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
We checked 3 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
12 changes: 12 additions & 0 deletions man/dot-extract_partykit_classprob.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions man/dot-extract_xgb_trees.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/tidypredict-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 17 additions & 16 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# Platform

|field |value |
|:--------|:------------------------------------------------|
|version |R version 4.2.1 (2022-06-23) |
|os |macOS Ventura 13.1 |
|system |aarch64, darwin20 |
|ui |RStudio |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/Chicago |
|date |2023-01-17 |
|rstudio |2022.12.0-preview+330 Elsbeth Geranium (desktop) |
|pandoc |2.11 @ /Users/edgar/opt/anaconda3/bin/pandoc |
|field |value |
|:--------|:-------------------------------------------------------------------------------------------------|
|version |R version 4.4.2 (2024-10-31) |
|os |macOS Sequoia 15.1.1 |
|system |aarch64, darwin20 |
|ui |X11 |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/Los_Angeles |
|date |2024-12-17 |
|pandoc |3.2 @ /Applications/Positron.app/Contents/Resources/app/quarto/bin/tools/aarch64/ (via rmarkdown) |

# Dependencies

|package |old |new |Δ |
|:-----------|:-----|:----------|:--|
|tidypredict |0.4.9 |0.4.9.9001 |* |
|package | old|new |Δ |
|:-----------|---:|:----------|:--|
|tidypredict | 0.5|0.5 | |
|cpp11 | NA|0.5.1 |* |
|vctrs | NA|0.6.5.9000 |* |

# Revdeps

Loading