tlverse / sl3
Showing 1 of 1 files from the diff.

@@ -121,7 +121,21 @@
Loading
121 121
        args$id <- task$id
122 122
      }
123 123
124 -
      fit_object <- call_with_args(hal9001::fit_hal, args)
124 +
      # pass in formals of glmnet versus cv.glmnet based on cv_select
125 +
      if (args$cv_select) {
126 +
        glmnet_other_valid <- union(
127 +
          names(formals(glmnet::cv.glmnet)),
128 +
          names(formals(glmnet::glmnet))
129 +
        )
130 +
      } else {
131 +
        glmnet_other_valid <- names(formals(glmnet::glmnet))
132 +
      }
133 +
134 +
      # fit HAL, allowing glmnet-fitting arguments
135 +
      fit_object <- call_with_args(
136 +
        hal9001::fit_hal, args,
137 +
        other_valid = glmnet_other_valid
138 +
      )
125 139
      return(fit_object)
126 140
    },
127 141
    .predict = function(task = NULL) {
@@ -132,6 +146,6 @@
Loading
132 146
      }
133 147
      return(predictions)
134 148
    },
135 -
    .required_packages = c("hal9001")
149 +
    .required_packages = c("hal9001", "glmnet")
136 150
  )
137 151
)
Files Coverage
R 75.77%
Project Totals (91 files) 75.77%
1
codecov:
2
  token: 0e172078-76a1-4b94-bd7f-2e10d0647b3d
3

4
comment: false
5

6
ignore:
7
  - "R/utils.R"
8

9
coverage:
10
  status:
11
    project:
12
      default:
13
        against: parent
14
        target: auto
15
        threshold: 1%
16
        branches:
17
          - master
18
        if_no_uploads: error
19
        if_not_found: success
20
        if_ci_failed: error
21
        only_pulls: false
22
        flags:
23
          - integration
24
        paths:
25
          - folder
26

27
    patch:
28
      default:
29
        against: parent
30
        target: 80%
31
        branches: null
32
        if_no_uploads: success
33
        if_not_found: success
34
        if_ci_failed: error
35
        only_pulls: false
36
        flags:
37
          - integration
38
        paths:
39
          - folder
40

41
    changes:
42
      default:
43
        against: parent
44
        branches: null
45
        if_no_uploads: error
46
        if_not_found: success
47
        if_ci_failed: error
48
        only_pulls: false
49
        flags:
50
          - integration
51
        paths:
52
          - folder
53

54
  flags:
55
    integration:
56
      branches:
57
        - master
58
      ignore:
59
        - app/ui
60

61
  ignore: # files and folders for processing
62
    - tests/*
63

64
  fixes:
65
    - "old_path::new_path"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading