Skip to content

0.1.5 release candidate #418

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

Merged
merged 2 commits into from
Jan 19, 2021
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: parsnip
Version: 0.1.4.9000
Version: 0.1.5
Title: A Common API to Modeling and Analysis Functions
Description: A common interface is provided to allow users to specify a model without having to remember the different argument names across different functions or computational engines (e.g. 'R', 'Spark', 'Stan', etc).
Authors@R: c(
Expand Down
11 changes: 9 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# parsnip (development version)
# parsnip 0.1.5

* An RStudio add-in is availble that makes writing multiple `parsnip` model specifications to the source window. It can be accessed via the IDE addin menus or by calling `parsnip_addin()`.

* For `xgboost` models, users can now pass `objective` to `set_engine("xgboost")`.
* For `xgboost` models, users can now pass `objective` to `set_engine("xgboost")`. (#403)

* Changes to test for cases when CRAN cannot get `xgboost` to work on their Solaris configuration.

* There is now an `augument()` method for fitted models. See `augment.model_fit`. (#401)

* Column names for `x` are now required when `fit_xy()` is used. (#398)


# parsnip 0.1.4

Expand Down
2 changes: 1 addition & 1 deletion R/boost_tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ xgb_by_tree <- function(tree, object, new_data, type, ...) {
#' @param weights An optional numeric vector of case weights. Note
#' that the data used for the case weights will not be used as a
#' splitting variable in the model (see
#' \url{http://www.rulequest.com/see5-win.html} for
#' \url{https://www.rulequest.com/see5-info.html} for
#' Quinlan's notes on case weights).
#' @param minCases An integer for the smallest number of samples
#' that must be put in at least two of the splits.
Expand Down
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ knitr::opts_chunk$set(
[![R build status](https://github.com/tidymodels/parsnip/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/parsnip/actions)
[![Coverage status](https://codecov.io/gh/tidymodels/parsnip/branch/master/graph/badge.svg)](https://codecov.io/github/tidymodels/parsnip?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/parsnip)](https://CRAN.R-project.org/package=parsnip)
[![Downloads](https://cranlogs.r-pkg.org/badges/parsnip)](https://cran.rstudio.com/package=parsnip)
[![Downloads](https://cranlogs.r-pkg.org/badges/parsnip)](https://CRAN.R-project.org/package=parsnip)
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
<!-- badges: end -->

Expand Down Expand Up @@ -129,10 +129,10 @@ Data sets previously found in `parsnip` are now find in the `modeldata` package.

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://rstd.io/tidymodels-community).
- 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).

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

- Either way, learn how to create and share a [reprex](https://rstd.io/reprex) (a minimal, reproducible example), to clearly communicate about your code.
- Either way, learn how to create and share a [reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html) (a minimal, reproducible example), to clearly communicate about your code.

- Check out further details on [contributing guidelines for tidymodels packages](https://www.tidymodels.org/contribute/) and [how to get help](https://www.tidymodels.org/help/).
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ status](https://github.com/tidymodels/parsnip/workflows/R-CMD-check/badge.svg)](
status](https://codecov.io/gh/tidymodels/parsnip/branch/master/graph/badge.svg)](https://codecov.io/github/tidymodels/parsnip?branch=master)
[![CRAN
status](https://www.r-pkg.org/badges/version/parsnip)](https://CRAN.R-project.org/package=parsnip)
[![Downloads](https://cranlogs.r-pkg.org/badges/parsnip)](https://cran.rstudio.com/package=parsnip)
[![Downloads](https://cranlogs.r-pkg.org/badges/parsnip)](https://CRAN.R-project.org/package=parsnip)
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
<!-- badges: end -->

Expand Down Expand Up @@ -78,19 +78,19 @@ between implementations.

In this example:

- the **type** of model is “random forest”,
- the **mode** of the model is “regression” (as opposed to
- the **type** of model is “random forest”,
- the **mode** of the model is “regression” (as opposed to
classification, etc), and
- the computational **engine** is the name of the R package.
- the computational **engine** is the name of the R package.

The goals of parsnip are to:

- Separate the definition of a model from its evaluation.
- Decouple the model specification from the implementation (whether
- Separate the definition of a model from its evaluation.
- Decouple the model specification from the implementation (whether
the implementation is in R, spark, or something else). For example,
the user would call `rand_forest` instead of `ranger::ranger` or
other specific packages.
- Harmonize argument names (e.g. `n.trees`, `ntrees`, `trees`) so that
- Harmonize argument names (e.g. `n.trees`, `ntrees`, `trees`) so that
users only need to remember a single name. This will help *across*
model types too so that `trees` will be the same argument across
random forest as well as boosting or bagging.
Expand Down Expand Up @@ -141,7 +141,7 @@ rand_forest(mtry = 10, trees = 2000) %>%
fit(mpg ~ ., data = mtcars)
#> parsnip model object
#>
#> Fit time: 71ms
#> Fit time: 83ms
#> Ranger result
#>
#> Call:
Expand Down Expand Up @@ -171,17 +171,18 @@ 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,
- For questions and discussions about tidymodels packages, modeling,
and machine learning, please [post on RStudio
Community](https://rstd.io/tidymodels-community).
Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).

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

- Either way, learn how to create and share a
[reprex](https://rstd.io/reprex) (a minimal, reproducible example),
to clearly communicate about your code.
- Either way, learn how to create and share a
[reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html)
(a minimal, reproducible example), to clearly communicate about your
code.

- Check out further details on [contributing guidelines for tidymodels
- Check out further details on [contributing guidelines for tidymodels
packages](https://www.tidymodels.org/contribute/) and [how to get
help](https://www.tidymodels.org/help/).
2 changes: 1 addition & 1 deletion man/C5.0_train.Rd

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

15 changes: 7 additions & 8 deletions man/rand_forest.Rd

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

59 changes: 38 additions & 21 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
# Platform

|field |value |
|:--------|:--------------------------------------------------|
|version |R Under development (unstable) (2019-03-02 r76189) |
|os |macOS High Sierra 10.13.6 |
|system |x86_64, darwin15.6.0 |
|ui |X11 |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/New_York |
|date |2019-03-21 |
|field |value |
|:--------|:----------------------------|
|version |R version 4.0.3 (2020-10-10) |
|os |macOS Catalina 10.15.5 |
|system |x86_64, darwin17.0 |
|ui |RStudio |
|language |(EN) |
|collate |en_US.UTF-8 |
|ctype |en_US.UTF-8 |
|tz |America/New_York |
|date |2021-01-19 |

# Dependencies

|package |old |new |Δ |
|:-------|:-----|:----------|:--|
|parsnip |0.0.1 |0.0.1.9000 |* |
|package |old |new |Δ |
|:-----------|:------|:----------|:--|
|parsnip |0.1.4 |0.1.4.9000 |* |
|assertthat |0.2.1 |0.2.1 | |
|cli |2.2.0 |2.2.0 | |
|cpp11 |0.2.5 |0.2.5 | |
|crayon |1.3.4 |1.3.4 | |
|digest |0.6.27 |0.6.27 | |
|dplyr |1.0.3 |1.0.3 | |
|ellipsis |0.3.1 |0.3.1 | |
|fansi |0.4.2 |0.4.2 | |
|generics |0.1.0 |0.1.0 | |
|globals |0.14.0 |0.14.0 | |
|glue |1.4.2 |1.4.2 | |
|lifecycle |0.2.0 |0.2.0 | |
|magrittr |2.0.1 |2.0.1 | |
|pillar |1.4.7 |1.4.7 | |
|pkgconfig |2.0.3 |2.0.3 | |
|prettyunits |1.1.1 |1.1.1 | |
|purrr |0.3.4 |0.3.4 | |
|R6 |2.5.0 |2.5.0 | |
|rlang |0.4.10 |0.4.10 | |
|tibble |3.0.5 |3.0.5 | |
|tidyr |1.1.2 |1.1.2 | |
|tidyselect |1.1.0 |1.1.0 | |
|utf8 |1.1.4 |1.1.4 | |
|vctrs |0.3.6 |0.3.6 | |

# Revdeps

## All (2)

|package |version |error |warning |note |
|:----------|:-------|:-----|:-------|:----|
|probably |0.0.2 | | | |
|tidymodels |0.0.2 | | | |

Binary file modified revdep/data.sqlite
Binary file not shown.
1 change: 1 addition & 0 deletions revdep/problems.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*Wow, no problems at all. :)*