0Pricing
Deep Learning Academy · Lezione

Tracciare gli esperimenti con Weights & Biases

Registri metriche, configurazioni e artefatti

Tracciare gli esperimenti con Weights & Biases è una lezione Deep Learning Academy gratuita su CoddyKit. Questa è la lezione 1 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Deep Learning Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Deep Learning Academy include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

Why Track Experiments at All

You will run a model dozens of times with tiny tweaks. Without records you forget what worked. Experiment tracking logs every run so progress is never lost. 📊

Meet Weights & Biases

Weights and Biases, often written wandb, is a popular tool that records metrics, settings, and outputs from each training run in one dashboard.

pip install wandb

Start a Run

One call opens a new tracked session. wandb.init names your project so every run lands in the same place for easy comparison.

import wandb
wandb.init(project="mnist-cnn")

Log Your Config

Save the settings that shaped a run, like learning rate and batch size. Storing this config lets you tie any result back to its exact recipe.

wandb.config.update({"lr": 0.001, "batch_size": 32})

Log Metrics Each Step

Inside your loop, send numbers you care about. wandb.log records loss and accuracy so they plot as live curves over time.

wandb.log({"loss": loss.item(), "acc": acc})

Live Dashboards

Every logged number streams to a web dashboard. You watch training curves update in real time and spot a diverging run before it wastes hours.

Compare Runs Side by Side

The real power is comparison. Overlay many runs and the dashboard shows which hyperparameters actually moved your accuracy upward.

Save Artifacts

Beyond numbers you can store files. Logging a trained checkpoint as an artifact keeps the exact weights paired with the run that made them.

wandb.save("model.pt")

Finish Cleanly

When training ends, close the session so all data flushes to the server. Calling wandb.finish marks the run complete and ready to review.

wandb.finish()

Sweeps Search for You

Tired of tuning by hand? A wandb sweep launches many runs across a range of settings and reports which combination wins automatically.

Tracking Is a Team Habit

Logged runs become shared history. Teammates open the same dashboard and instantly see your results, making your work reproducible and easy to trust.

Quick Check

Which call records metrics like loss during training?

Recap

You learned to track runs with wandb: init a project, log config and metrics, save artifacts, and finish. Now every experiment is recorded. 🎉

Domande Frequenti

La lezione «Tracciare gli esperimenti con Weights & Biases» è gratuita?

Sì — il testo completo di «Tracciare gli esperimenti con Weights & Biases» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Deep Learning Academy, passa a CoddyKit PRO. Il corso Deep Learning Academy include 4 lezioni in totale.

Cosa imparerò in «Tracciare gli esperimenti con Weights & Biases»?

Registri metriche, configurazioni e artefatti Eserciti Deep Learning Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Deep Learning Academy?

Non è richiesta alcuna esperienza precedente. Deep Learning Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 1 di 4.

Quanto tempo richiede la lezione «Tracciare gli esperimenti con Weights & Biases»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Deep Learning Academy?

Sì. Ogni lezione Deep Learning Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Tracciare gli esperimenti con Weights & Biases
  2. Versionare dati e modelli
  3. Rilevare il drift dei dati e del modello
  4. Automatizzare le pipeline di riaddestramento
← Torna a Deep Learning Academy