Skip to content

Commit

Permalink
Merge pull request #215 from tidymodels/update-snapshots
Browse files Browse the repository at this point in the history
Update snapshots
  • Loading branch information
EmilHvitfeldt authored Feb 23, 2024
2 parents f205fd8 + e6cfbbc commit d42199b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 111 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/R-CMD-check-hard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,14 @@ jobs:
needs: check
pak-version: devel

- name: Install Miniconda
run: |
reticulate::install_miniconda()
shell: Rscript {0}

- name: Find Miniconda on macOS
if: runner.os == 'macOS'
run: echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile
- uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install TensorFlow
run: |
reticulate::conda_create('r-reticulate', packages = c('python==3.6.9'))
reticulate::virtualenv_create('r-reticulate', python='3.9')
reticulate::use_virtualenv('r-reticulate')
tensorflow::install_tensorflow(version='2.11.0')
shell: Rscript {0}

Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

- name: Install Miniconda
run: |
reticulate::install_miniconda()
shell: Rscript {0}

- name: Find Miniconda on macOS
if: runner.os == 'macOS'
run: echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile
- uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install TensorFlow
run: |
reticulate::conda_create('r-reticulate', packages = c('python==3.6.9'))
reticulate::virtualenv_create('r-reticulate', python='3.9')
reticulate::use_virtualenv('r-reticulate')
tensorflow::install_tensorflow(version='2.11.0')
shell: Rscript {0}

Expand Down
39 changes: 21 additions & 18 deletions tests/testthat/_snaps/discretize_xgb.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
best_msg : [86] train-logloss:0.417583 test-logloss:0.442150
nfeatures : 13
evaluation_log:
iter train_logloss test_logloss
1 0.6279229 0.6303495
2 0.5869984 0.5894989
---
95 0.4157892 0.4425857
96 0.4156102 0.4432699
iter train_logloss test_logloss
<num> <num> <num>
1 0.6279229 0.6303495
2 0.5869984 0.5894989
---
95 0.4157892 0.4425857
96 0.4156102 0.4432699

# run_xgboost for multi-classification

Expand Down Expand Up @@ -61,12 +62,13 @@
best_msg : [23] train-mlogloss:1.178121 test-mlogloss:1.246428
nfeatures : 30
evaluation_log:
iter train_mlogloss test_mlogloss
1 1.623174 1.631783
2 1.515108 1.531188
---
32 1.159813 1.249701
33 1.158088 1.250462
iter train_mlogloss test_mlogloss
<num> <num> <num>
1 1.623174 1.631783
2 1.515108 1.531188
---
32 1.159813 1.249701
33 1.158088 1.250462

# run_xgboost for regression

Expand Down Expand Up @@ -96,12 +98,13 @@
best_msg : [40] train-rmse:0.064010 test-rmse:0.116534
nfeatures : 73
evaluation_log:
iter train_rmse test_rmse
1 3.31007782 3.3068878
2 2.31969213 2.3262197
---
49 0.06207940 0.1175223
50 0.06191289 0.1188113
iter train_rmse test_rmse
<num> <num> <num>
1 3.31007782 3.3068878
2 2.31969213 2.3262197
---
49 0.06207940 0.1175223
50 0.06191289 0.1188113

# xgb_binning for classification

Expand Down
68 changes: 0 additions & 68 deletions tests/testthat/_snaps/umap.new.md

This file was deleted.

7 changes: 0 additions & 7 deletions tests/testthat/test-embed.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
source(testthat::test_path("make_example_data.R"))
source(testthat::test_path("test-helpers.R"))

if (tolower(Sys.info()[["sysname"]]) == "darwin" &&
R.version[["arch"]] == "aarch64") {
# To make stuff run on M1
tensorflow::tf$config$get_visible_devices("CPU") %>%
tensorflow::tf$config$set_visible_devices()
}

# Stops noisy tensorflow messages
withr::local_envvar(TF_CPP_MIN_LOG_LEVEL = "2")

Expand Down

0 comments on commit d42199b

Please sign in to comment.