library_templates | R Documentation |
These functions make suggestions for code when performing a few common types of experiments (i.e., for prediction, feature selection, and inference). They print out code to the console that could be considered minimal syntax.
use_prediction_template(
experiment_name = "Prediction Experiment",
type = c("regression", "classification"),
support = FALSE,
include_dgp_example = FALSE,
include_method_example = FALSE
)
use_feature_selection_template(
experiment_name = "Feature Selection Experiment",
include_dgp_example = FALSE,
include_method_example = FALSE
)
use_inference_template(
experiment_name = "Inference Experiment",
include_dgp_example = FALSE,
include_method_example = FALSE
)
experiment_name |
Name of the experiment. |
type |
Either "regression" or "classification" specifying the type of prediction problem. |
support |
Logical. If |
include_dgp_example |
Logical. If |
include_method_example |
Logical. If |
Invisible NULL
but code is printed to the console.
# prediction templates
use_prediction_template(type = "regression")
use_prediction_template(type = "classification")
# prediction templates with example DGP and Method
use_prediction_template(type = "regression",
include_dgp_example = TRUE,
include_method_example = TRUE)
use_prediction_template(type = "classification",
include_dgp_example = TRUE,
include_method_example = TRUE)
# feature selection template
use_feature_selection_template()
# feature selection template with example DGP and Method
use_feature_selection_template(include_dgp_example = TRUE,
include_method_example = TRUE)
# inference template
use_inference_template()
# inference template with example DGP and Method
use_inference_template(include_dgp_example = TRUE,
include_method_example = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.