This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Setup | |
library(broom) | |
library(tidyverse) | |
# obtain character list of independent variables in a model object. | |
obtain_model_varlist <- function(model_obj) { | |
var_list_raw <- unlist(strsplit(as.character(formula(model_obj)[3]),split=' \\+ ')) | |
# Remove smooth terms (s()) | |
return(var_list_raw[!str_detect(var_list_raw,'^s\\(')]) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"fp16": { | |
"enabled": true, | |
"loss_scale": 0, | |
"loss_scale_window": 1000, | |
"initial_scale_power": 32, | |
"hysteresis": 2, | |
"min_loss_scale": 1 | |
}, |