Skip to content

Commit

Permalink
Merge pull request #527 from bbayukari/master
Browse files Browse the repository at this point in the history
docs: fix docs build failing
  • Loading branch information
bbayukari authored Oct 1, 2023
2 parents b32d0ac + 43a4195 commit 87dfe95
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ build:
- pip install --no-cache-dir pybind11[global]
pre_build:
- pip install --no-cache-dir -r docs/requirements.txt
apt_packages:
- graphviz

python:
install:
Expand Down
2 changes: 1 addition & 1 deletion R-package/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: abess
Type: Package
Title: Fast Best Subset Selection
Version: 0.4.8
Date: 2023-02-19
Date: 2023-09-19
Authors@R: c(
person(given = "Jin", family = "Zhu", email = "zhuj37@mail2.sysu.edu.cn", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-8550-5822")),
person(given = "Zezhi", family = "Wang", email = "homura@mail.ustc.edu.cn", role = c("aut")),
Expand Down
1 change: 1 addition & 0 deletions R-package/R/abess.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ abess <- function(x, ...) UseMethod("abess")
#' @examples
#' \donttest{
#' library(abess)
#' Sys.setenv("OMP_THREAD_LIMIT" = 2)
#' n <- 100
#' p <- 20
#' support.size <- 3
Expand Down
1 change: 1 addition & 0 deletions R-package/R/abesspca.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
#' @examples
#' \donttest{
#' library(abess)
#' Sys.setenv("OMP_THREAD_LIMIT" = 2)
#'
#' ## predictor matrix input:
#' head(USArrests)
Expand Down
1 change: 1 addition & 0 deletions R-package/R/abessrpca.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#' @examples
#' \donttest{
#' library(abess)
#' Sys.setenv("OMP_THREAD_LIMIT" = 2)
#' n <- 30
#' p <- 30
#' true_S_size <- 60
Expand Down
1 change: 1 addition & 0 deletions R-package/man/abess.Rd

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

1 change: 1 addition & 0 deletions R-package/man/abesspca.Rd

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

1 change: 1 addition & 0 deletions R-package/man/abessrpca.Rd

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

2 changes: 2 additions & 0 deletions R-package/tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Sys.setenv("OMP_THREAD_LIMIT" = 2)

library(testthat)
library(abess)

Expand Down
4 changes: 4 additions & 0 deletions R-package/vignettes/_v13-Use-abess-via-mlr3.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ output:

This guide is to show how to use `abess` via mlr3 (Machine Learning in R universe).

```{r warning=FALSE}
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

First, install `mlr3` and `mlr3extralearners` (from github) if they are not in the environment.

```
Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v01-abess-guide.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ vignette: |

```{r, echo=FALSE, message=FALSE, warning=FALSE}
knitr::opts_chunk$set(warning = FALSE, eval = TRUE, message = FALSE)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```


Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v03-classification.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ output:

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, warning = F, message = F)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

## Titanic Dataset and Classification
Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v04-PoissonGammaReg.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ vignette: |

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, warning = F, message = F)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

## Poisson Regression
Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v05-coxreg.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ output:

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, warning = FALSE, message = FALSE)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

<!-- In this vignette, a lung cancer dataset is first displayed to the -->
Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v06-MultiTaskLearning.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ output:

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, warning = F, message = F)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

## Brief Introduction
Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v07-advancedFeatures.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ output:

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

## Introduction
Expand Down
4 changes: 4 additions & 0 deletions R-package/vignettes/v08-sPCA.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ output:
keep_md: yes
---

```{r warning=FALSE}
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

## Introduction
Principal component analysis (PCA) is an important method in the field of data science, which can reduce the dimension of data and simplify our model. It actually solve an optimization problem like:

Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v09-fasterSetting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ editor_options:

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

## Introduction
Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v10-algorithm.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ vignette: |

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, message = F, warning = F)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

# Introduction
Expand Down
1 change: 1 addition & 0 deletions R-package/vignettes/v11-power-of-abess.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ output:

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, warning = F, message = F)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```
In this part, we are going to explore the power of the abess package using simulated data.
We compare the abess package with popular R libraries: `glmnet`, `ncvreg` for linear and logistic regressions in the following section.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ output: html_document

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = T)
Sys.setenv("OMP_THREAD_LIMIT" = 2)
```

This vignette introduces what is adaptive best subset selection robust principal component analysis and then we will show how it works using *abess* package on an artificial example.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
data = np.concatenate((data0,data1))
train_data, test_data, train_labels, test_labels = train_test_split(data, labels, test_size=0.33, random_state=0)

mean = FrechetMean(metric=sphere.metric)
mean = FrechetMean(sphere)
mean.fit(train_data)
mean_estimate = mean.estimate_

Expand Down

0 comments on commit 87dfe95

Please sign in to comment.