Skip to content

Commit 02b4060

Browse files
authored
Merge pull request #328 from tidymodels/xgb-docs
xgboost notes about sample_prop
2 parents c7e640a + 08ee6f2 commit 02b4060

File tree

240 files changed

+129
-56173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+129
-56173
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ jobs:
7171
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9')"
7272
Rscript -e "tensorflow::install_tensorflow(version='1.14.0')"
7373
74-
- name: Check
75-
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')"
76-
7774
- name: Session info
7875
run: |
7976
options(width = 100)

.github/workflows/pkgdown.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
push:
3+
branches: master
4+
5+
name: pkgdown
6+
7+
jobs:
8+
pkgdown:
9+
runs-on: macOS-latest
10+
env:
11+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: r-lib/actions/setup-r@master
16+
17+
- uses: r-lib/actions/setup-pandoc@master
18+
19+
- name: Query dependencies
20+
run: |
21+
install.packages('remotes')
22+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
23+
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
24+
shell: Rscript {0}
25+
26+
- name: Cache R packages
27+
uses: actions/cache@v1
28+
with:
29+
path: ${{ env.R_LIBS_USER }}
30+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
31+
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
32+
33+
- name: Install dependencies
34+
run: |
35+
install.packages("remotes")
36+
remotes::install_deps(dependencies = TRUE)
37+
remotes::install_dev("pkgdown")
38+
remotes::install_github("tidyverse/tidytemplate")
39+
shell: Rscript {0}
40+
41+
- name: Install package
42+
run: R CMD INSTALL .
43+
44+
- name: Deploy package
45+
run: pkgdown::deploy_to_branch(new_process = FALSE)
46+
shell: Rscript {0}

R/linear_reg.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#' \itemize{
88
#' \item \code{penalty}: The total amount of regularization
99
#' in the model. Note that this must be zero for some engines.
10-
#' \item \code{mixture}: The proportion of L1 regularization in
11-
#' the model. Note that this will be ignored for some engines.
10+
#' \item \code{mixture}: The mixture amounts of different types of
11+
#' regularization (see below). Note that this will be ignored for some engines.
1212
#' }
1313
#' These arguments are converted to their specific names at the
1414
#' time that the model is fit. Other options and argument can be
@@ -23,11 +23,11 @@
2323
#' amount of regularization (`glmnet`, `keras`, and `spark` only).
2424
#' For `keras` models, this corresponds to purely L2 regularization
2525
#' (aka weight decay) while the other models can be a combination
26-
#' of L1 and L2 (depending on the value of `mixture`).
27-
#' @param mixture A number between zero and one (inclusive) that
28-
#' represents the proportion of regularization that is used for the
29-
#' L2 penalty (i.e. weight decay, or ridge regression) versus L1
30-
#' (the lasso) (`glmnet` and `spark` only).
26+
#' of L1 and L2 (depending on the value of `mixture`; see below).
27+
#' @param mixture A number between zero and one (inclusive) that is the
28+
#' proportion of L1 regularization (i.e. lasso) in the model. When
29+
#' `mixture = 1`, it is a pure lasso model while `mixture = 0` indicates that
30+
#' ridge regression is being used. (`glmnet` and `spark` only).
3131
#' @details
3232
#' The data given to the function are not saved and are only used
3333
#' to determine the _mode_ of the model. For `linear_reg()`, the

R/logistic_reg.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#' \itemize{
88
#' \item \code{penalty}: The total amount of regularization
99
#' in the model. Note that this must be zero for some engines.
10-
#' \item \code{mixture}: The proportion of L1 regularization in
11-
#' the model. Note that this will be ignored for some engines.
10+
#' \item \code{mixture}: The mixture amounts of different types of
11+
#' regularization (see below). Note that this will be ignored for some engines.
1212
#' }
1313
#' These arguments are converted to their specific names at the
1414
#' time that the model is fit. Other options and argument can be
@@ -24,10 +24,10 @@
2424
#' For `keras` models, this corresponds to purely L2 regularization
2525
#' (aka weight decay) while the other models can be a combination
2626
#' of L1 and L2 (depending on the value of `mixture`).
27-
#' @param mixture A number between zero and one (inclusive) that
28-
#' represents the proportion of regularization that is used for the
29-
#' L2 penalty (i.e. weight decay, or ridge regression) versus L1
30-
#' (the lasso) (`glmnet` and `spark` only).
27+
#' @param mixture A number between zero and one (inclusive) that is the
28+
#' proportion of L1 regularization (i.e. lasso) in the model. When
29+
#' `mixture = 1`, it is a pure lasso model while `mixture = 0` indicates that
30+
#' ridge regression is being used. (`glmnet` and `spark` only).
3131
#' @details
3232
#' For `logistic_reg()`, the mode will always be "classification".
3333
#'

R/multinom_reg.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#' \itemize{
88
#' \item \code{penalty}: The total amount of regularization
99
#' in the model. Note that this must be zero for some engines.
10-
#' \item \code{mixture}: The proportion of L1 regularization in
11-
#' the model. Note that this will be ignored for some engines.
10+
#' \item \code{mixture}: The mixture amounts of different types of
11+
#' regularization (see below). Note that this will be ignored for some engines.
1212
#' }
1313
#' These arguments are converted to their specific names at the
1414
#' time that the model is fit. Other options and argument can be
@@ -24,10 +24,10 @@
2424
#' For `keras` models, this corresponds to purely L2 regularization
2525
#' (aka weight decay) while the other models can be a combination
2626
#' of L1 and L2 (depending on the value of `mixture`).
27-
#' @param mixture A number between zero and one (inclusive) that
28-
#' represents the proportion of regularization that is used for the
29-
#' L2 penalty (i.e. weight decay, or ridge regression) versus L1
30-
#' (the lasso) (`glmnet` only).
27+
#' @param mixture A number between zero and one (inclusive) that is the
28+
#' proportion of L1 regularization (i.e. lasso) in the model. When
29+
#' `mixture = 1`, it is a pure lasso model while `mixture = 0` indicates that
30+
#' ridge regression is being used. (`glmnet` and `spark` only).
3131
#' @details
3232
#' For `multinom_reg()`, the mode will always be "classification".
3333
#'

_pkgdown.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ url: https://parsnip.tidymodels.org
33
template:
44
package: tidytemplate
55
params:
6+
theme: tidymodels
67
part_of: <a href="https://tidymodels.org">tidymodels</a>
7-
footer: <code>parsnip</code> is a part of the <strong>tidymodels</strong> ecosystem, a collection of modeling packages designed with common APIs and a shared philosophy.
8+
footer: parsnip is a part of the <strong>tidymodels</strong> ecosystem, a collection of modeling packages designed with common APIs and a shared philosophy.
89

910
# https://github.com/tidyverse/tidytemplate for css
1011

docs/404.html

Lines changed: 0 additions & 174 deletions
This file was deleted.

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)