This vignette demonstrates the Scenario 1 plot configuration interface in DDESONN.
training_overrides)Scenario 1 configures plotting through three independent call
sites inside training_overrides:
training_overrides$per_epoch_plotstraining_overrides$performance_relevancetraining_overrides$evaluate_predictions_report_plotsEach plot category is defined and controlled separately.
This represents the minimal-integration bridge interface, where plot configuration remains distributed across training components.
The code is shown without running training by default. Set
DDESONN_VIGNETTE_FULL=true before rendering to execute both
ensemble examples.
options(DDESONN_OUTPUT_ROOT = outC)
Sys.setenv(DDESONN_ARTIFACTS_ROOT = outC)
res_scenarioC_s1 <- ddesonn_run(
x = x_train,
y = y_train,
classification_mode = "binary",
hidden_sizes = c(64, 32),
# ----------------------------------------------------------
# ENSEMBLE CONFIG
# ----------------------------------------------------------
do_ensemble = TRUE,
num_networks = 2L,
seeds = 1:1,
validation = list(x = x_valid, y = y_valid),
test = list(x = x_test, y = y_test),
# ----------------------------------------------------------
# TRAINING OVERRIDES (Scenario 1 knobs)
# ----------------------------------------------------------
training_overrides = list(
init_method = "he",
optimizer = "adagrad",
lr = 0.125,
lambda = 0.00028,
activation_functions = list(relu, relu, sigmoid),
dropout_rates = list(0.10),
loss_type = "CrossEntropy",
validation_metrics = TRUE,
num_epochs = 3,
final_summary_decimals = 6L,
# ========================================================
# SECTION: output_controls
# ========================================================
viewTables = FALSE,
debug = FALSE,
verboseLow = FALSE,
browse = FALSE,
# ========================================================
# SECTION: per_epoch_plots
# ========================================================
per_epoch_plots = list(
saveEnabled = TRUE,
loss_curve = TRUE,
probe_plots = TRUE,
verbose = FALSE
),
# ========================================================
# SECTION: performance_relevance (Scenario 1)
# - bridged internally to plot_controls$performance_relevance
# ========================================================
performance_relevance = list(
saveEnabled = TRUE,
viewAllPlots = FALSE,
performance_high_mean_plots = TRUE,
performance_low_mean_plots = TRUE,
relevance_high_mean_plots = TRUE,
relevance_low_mean_plots = TRUE,
verbose = FALSE
),
# ========================================================
# SECTION: evaluate_predictions_report_plots
# ========================================================
evaluate_predictions_report_plots = list(
accuracy_plot = TRUE,
accuracy_plot_mode = "both",
plot_roc = TRUE,
plot_pr = TRUE,
show_auprc = TRUE,
viewAllPlots = FALSE,
verbose = FALSE
)
)
)
# ============================================================
# INCLUDE SAVED PLOTS (interactive / RStudio use)
# ============================================================
if (exists("include_saved_plots")) {
include_saved_plots(outC, "Plot Controls: Scenario 1 — Ensemble Run — Scenario C")
}options(DDESONN_OUTPUT_ROOT = outD)
Sys.setenv(DDESONN_ARTIFACTS_ROOT = outD)
res_scenarioD_s1 <- ddesonn_run(
x = x_train,
y = y_train,
classification_mode = "binary",
hidden_sizes = c(64, 32),
# ----------------------------------------------------------
# ENSEMBLE CONFIG
# ----------------------------------------------------------
do_ensemble = TRUE,
num_networks = 2L,
num_temp_iterations = 1L,
seeds = 1:1,
validation = list(x = x_valid, y = y_valid),
test = list(x = x_test, y = y_test),
# ----------------------------------------------------------
# TRAINING OVERRIDES (Scenario 1 knobs)
# ----------------------------------------------------------
training_overrides = list(
init_method = "he",
optimizer = "adagrad",
lr = 0.125,
lambda = 0.00028,
activation_functions = list(relu, relu, sigmoid),
dropout_rates = list(0.10),
loss_type = "CrossEntropy",
validation_metrics = TRUE,
num_epochs = 3,
final_summary_decimals = 6L,
# ========================================================
# SECTION: per_epoch_plots
# ========================================================
per_epoch_plots = list(
saveEnabled = TRUE,
loss_curve = TRUE,
probe_plots = TRUE,
verbose = TRUE
),
# ========================================================
# SECTION: performance_relevance (Scenario 1)
# - bridged internally to plot_controls$performance_relevance
# ========================================================
performance_relevance = list(
saveEnabled = TRUE,
viewAllPlots = FALSE,
performance_high_mean_plots = TRUE,
performance_low_mean_plots = TRUE,
relevance_high_mean_plots = TRUE,
relevance_low_mean_plots = TRUE,
verbose = TRUE
),
# ========================================================
# SECTION: evaluate_predictions_report_plots
# ========================================================
evaluate_predictions_report_plots = list(
accuracy_plot = TRUE,
accuracy_plot_mode = "both",
plot_roc = TRUE,
plot_pr = TRUE,
show_auprc = TRUE,
viewAllPlots = FALSE,
verbose = TRUE
)
)
)
include_saved_plots(
outD,
"Plot Controls: Scenario 1 — Ensemble Runs — Scenario D"
)