knitr::opts_chunk$set(echo = TRUE)
rmonic::setup()
model_name <<- rmonic::slug("{{model_name}}")

Developing a Model {.tabset .tabset-fade}

model_init {#model_init}

{{{model_init}}}

model_fit {#model_fit}

{{{model_fit}}}

model_predict {#model_predict}

{{{model_predict}}}

model_store {#model_store}

{{{model_store}}}

model_end {#model_end}

{{{model_end}}}
## Store notebook changes in model components.
## This means that the code above will take effect during model backtesting.
if(existsFunction("model_init")) 
    rmonic::write_function(model_init, file.path(k_path_models, model_name, paste0("model_init.R")))
if(existsFunction("model_fit")) 
    rmonic::write_function(model_fit, file.path(k_path_models, model_name, paste0("model_fit.R")))
if(existsFunction("model_predict")) 
    rmonic::write_function(model_predict, file.path(k_path_models, model_name, paste0("model_predict.R")))
if(existsFunction("model_store")) 
    rmonic::write_function(model_store, file.path(k_path_models, model_name, paste0("model_store.R")))
if(existsFunction("model_end")) 
    rmonic::write_function(model_end, file.path(k_path_models, model_name, paste0("model_end.R")))


data-science-competitions/Modeling-Earthquake-Damage documentation built on Dec. 25, 2019, 12:02 p.m.