Update examples/pruning.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Manuel
2026-02-12 13:52:26 +01:00
committed by GitHub
co-authored by Copilot
parent cc3937d4f7
commit 2d88526d8d
+2 -2
View File
@@ -55,13 +55,13 @@ fn main() -> optimizer::Result<()> {
// --- Results --- // --- Results ---
let best = study.best_trial()?; let best = study.best_trial()?;
println!( println!(
"Completed {} trials ({} pruned)", "Recorded {} trials ({} pruned)",
study.n_trials(), study.n_trials(),
study.n_pruned_trials() study.n_pruned_trials()
); );
println!("Best trial #{}: loss = {:.6}", best.id, best.value); println!("Best trial #{}: loss = {:.6}", best.id, best.value);
println!(" learning_rate = {:.6}", best.get(&lr).unwrap()); println!(" learning_rate = {:.6}", best.get(&lr).unwrap());
println!(" momentum = {:.4}", best.get(&momentum).unwrap()); println!(" momentum = {:.4}", best.get(&momentum).unwrap());
Ok(()) Ok(())
} }