Skip to content

Commit

Permalink
setDTthreads(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhock committed Jun 14, 2023
1 parent ce30aad commit 5550970
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: aum
Type: Package
Title: Area Under Minimum of False Positives and Negatives
Version: 2023.5.12
Version: 2023.6.14
Authors@R: c(
person("Toby Dylan", "Hocking",
email="toby.hocking@r-project.org",
Expand Down Expand Up @@ -31,6 +31,5 @@ Suggests:
directlabels, microbenchmark,
covr,
atime,
future.apply,
ggrepel
VignetteBuilder: knitr
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Changes in version 2023.6.14

- setDTthreads(1) in aum_linear_model_cv example for CRAN.

Changes in version 2023.5.12

- aum_linear_model/cv defaults to maxIterations="min.aum".
Expand Down
3 changes: 2 additions & 1 deletion R/aum_linear_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ aum_linear_model_cv <- structure(function
fn=sum(fn_diff),
fp=sum(fp_diff)
), by=example]

if(is.null(improvement.thresh)){
abs.diff <- diff.dt[, abs(c(fp_diff, fn_diff))]
not.zero <- abs.diff[0 < abs.diff]
Expand Down Expand Up @@ -111,6 +110,8 @@ aum_linear_model_cv <- structure(function
### selecting the best number of gradient descent steps.
}, ex=function(){

if(require("data.table"))setDTthreads(1L)#for CRAN check.

## simulated binary classification problem.
N.rows <- 60
N.cols <- 2
Expand Down
2 changes: 2 additions & 0 deletions man/aum_linear_model_cv.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ selecting the best number of gradient descent steps.}

\examples{

if(require("data.table"))setDTthreads(1L)#for CRAN check.

## simulated binary classification problem.
N.rows <- 60
N.cols <- 2
Expand Down

0 comments on commit 5550970

Please sign in to comment.