From 0ffa738eb89344a0cfe0416d1b8f195fbee3ed4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Jankowski?= Date: Wed, 31 Jul 2024 11:29:50 +0200 Subject: [PATCH] Update src/neptune_scale/__init__.py Co-authored-by: Edyta <142720610+szaganek@users.noreply.github.com> --- src/neptune_scale/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/neptune_scale/__init__.py b/src/neptune_scale/__init__.py index 51cc554b..3bce4c62 100644 --- a/src/neptune_scale/__init__.py +++ b/src/neptune_scale/__init__.py @@ -120,7 +120,11 @@ def log( remove_tags: Dictionary of tags to remove from the run. Examples: - >>> with Run(...) as run: + ``` + with Run(...) as run: + run.log(step=1, timestamp=datetime.now(), fields={"parameters/learning_rate": 0.001}, add_tags={sys/groupTags: ["group1", "group2"]}) + run.log(step=2, timestamp=datetime.now(), metrics={"metrics/loss": 0.1}) + ``` ... run.log(step=1, timestamp=datetime.now(), fields={"int": 1, "string": "test"}) ... run.log(step=2, timestamp=datetime.now(), metrics={"metric": 1.0})