You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runnable scripts, grouped by the workflows the skills in ../skills/ cover.
Each shows one practice, checks its own result and ends with a summary:
line. Together they are the skills' test suite.
pip install "comet-ml>=3.59.0" scikit-learn pandas pillow
(cd views/javascript && npm install) # for the JavaScript panel tests (Node 18+)
python run_examples.py --offline # no server needed
python run_examples.py # everything, against your Comet server
Credentials come from COMET_API_KEY (or ~/.comet.config); the workspace
defaults to the key's default workspace; the project defaults to
comet-sdk-examples. Override with --workspace / --project or
COMET_WORKSPACE / COMET_PROJECT_NAME. Scripts that write outside the
example project are dry runs unless given --apply (or --yes).
experiments/ (skill: comet-experiments)
Script
Practice
dataset_artifact.py
Log the dataset once as a versioned Artifact
train.py
One run = one experiment: start(), naming, tags, parameters, per-epoch metrics, confusion matrix, a table and an image, the model with its preprocessing, end() in finally. Also runs offline.
sweep.py
Optimizer sweep; trials tagged with the sweep id
query/ (skill: comet-query)
Script
Practice
compare_runs.py
Find runs with the query DSL; compare final metrics and parameters
views/ (skill: comet-views)
Script
Practice
inspect_views.py
Read project and experiment views before changing them
build_view.py
A project view with every built-in panel type, a filter, table settings; create once, then update in place
experiment_view.py
The layout on each experiment's own page
custom_panels.py
Python (Streamlit) panels, inline and from the Panel library, and a JavaScript panel
javascript/*.js
Five JavaScript panels, one pattern each: metric curves, sorted bars, box plots by hyperparameter, an HTML leaderboard, a per-experiment report with a selector and stored state
javascript/test_panels.mjs
Test JavaScript panels locally against real experiments before saving (npm install in javascript/, Node 18+)
javascript_panels.py
Save the tested .js panels into a view
standardize_workspace.py
One house view across many projects, adapted to each project's metrics
harvest_panels.py
Collect code panels from existing views into a gallery view
migrate_views.py
Copy views between projects, workspaces or accounts
registry/ (skill: comet-registry)
Script
Practice
register_model.py
Register the best run's model; promote with demotion, only with --yes
predict.py
Load the model by registry status, never from a local path
Run them in the order of run_examples.py the first time: later scripts read
what earlier ones logged.