Skip to content

Commit

Permalink
rebuild site
Browse files Browse the repository at this point in the history
  • Loading branch information
nhejazi committed Dec 23, 2021
1 parent 7435428 commit 5f2764f
Show file tree
Hide file tree
Showing 128 changed files with 11,570 additions and 19,812 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ importFrom(data.table,data.table)
importFrom(data.table,set)
importFrom(data.table,setcolorder)
importFrom(data.table,setnames)
importFrom(data.table,setorder)
importFrom(data.table,setorderv)
importFrom(digest,digest)
importFrom(dplyr,"%>%")
Expand Down
8 changes: 5 additions & 3 deletions R/importance.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ utils::globalVariables(c("score"))
#' @rdname importance
#' @keywords variable importance
#'
#' @importFrom data.table data.table setorder setnames
#' @importFrom data.table data.table setorderv setnames
#'
#' @return A \code{data.table} of variable importance for each covariate.
#'
Expand Down Expand Up @@ -228,11 +228,13 @@ importance <- function(fit, eval_fun = NULL,

############################## prep output ###################################
# importance results ordered by decreasing importance
result <- data.table::data.table(covariate = names(X), metric = unlist(res_list))
result <- data.table::data.table(
covariate = names(X), metric = unlist(res_list)
)
if (!is.null(covariate_groups)) {
colnames(result)[1] <- "covariate_group"
}
data.table::setorder(result, -metric)
data.table::setorderv(result, cols = "metric", order = -1L)

# name the importance metric appropriately
metric_name <- paste0("risk_", importance_metric)
Expand Down
118 changes: 9 additions & 109 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ stack_fit <- learner_stack$train(task)
preds <- stack_fit$predict()
head(preds)
#> Lrnr_pkg_SuperLearner_SL.glmnet Lrnr_glm_TRUE
#> 1: 0.35767321 0.36298498
#> 2: 0.35767321 0.36298498
#> 3: 0.25185377 0.25993072
#> 4: 0.25185377 0.25993072
#> 5: 0.25185377 0.25993072
#> 6: 0.04220823 0.05680264
#> 1: 0.3525946 0.36298498
#> 2: 0.3525946 0.36298498
#> 3: 0.2442593 0.25993072
#> 4: 0.2442593 0.25993072
#> 5: 0.2442593 0.25993072
#> 6: 0.0269504 0.05680264
#> Pipeline(Lrnr_pkg_SuperLearner_screener_screen.glmnet->Lrnr_glm_TRUE)
#> 1: 0.36228209
#> 2: 0.36228209
Expand Down Expand Up @@ -1816,106 +1816,6 @@ x

<td style="text-align:left;">

Lrnr\_ga

</td>

<td style="text-align:left;">


</td>

<td style="text-align:left;">


</td>

<td style="text-align:left;">


</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">


</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">

x

</td>

<td style="text-align:left;">


</td>

<td style="text-align:left;">

x

</td>

</tr>

<tr>

<td style="text-align:left;">

Lrnr\_gam

</td>
Expand Down Expand Up @@ -4022,7 +3922,7 @@ Lrnr\_nnls

<td style="text-align:left;">

x

</td>

Expand Down Expand Up @@ -6634,7 +6534,7 @@ prior to submitting a pull request.
After using the `sl3` R package, please cite the following:

```
@software{coyle2021sl3-rpkg,
@software{coyle2021sl3-rpkg,
author = {Coyle, Jeremy R and Hejazi, Nima S and Malenica, Ivana and
Phillips, Rachael V and Sofrygin, Oleg},
title = {{sl3}: Modern Pipelines for Machine Learning and {Super
Expand Down Expand Up @@ -6664,7 +6564,7 @@ See file `LICENSE` for details.

## References

<div id="refs" class="references hanging-indent">
<div id="refs" class="references">

<div id="ref-breiman1996stacked">

Expand Down
Loading

0 comments on commit 5f2764f

Please sign in to comment.