Skip to content

Commit

Permalink
Update src/neptune_scale/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Edyta <[email protected]>
  • Loading branch information
Raalsky and szaganek authored Jul 31, 2024
1 parent 27c437b commit 0ffa738
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/neptune_scale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 0ffa738

Please sign in to comment.