Skip to main content
App version: 3.4.14

log_string_series()

Python package: neptune-scale

Logs the specified series of text values to a Neptune run.

Pass the metadata as a dictionary {key: value} with:

  • key: path to where the metadata should be stored in the run.
  • value: a string value to append to the series.

In the attribute path, each forward slash / nests the attribute under a namespace. Use namespaces to structure the metadata into meaningful categories.

Parameters

data
Dict[str, str]
required
default: None

Dictionary of strings to log. Each string value is associated with a step. To log multiple strings at once, pass multiple key-value pairs.

step
float | int
required
default: None

Index of the log entry. Must be increasing.

Tip: Using float rather than int values can be useful, for example, when logging substeps in a batch.

timestamp
datetime
optional
default: None

Time of logging the metadata. If not provided, the current time is used. If provided, and timestamp.tzinfo is not set, the time is assumed to be in the local timezone.

Example

from neptune_scale import Run


with Run(...) as run:
run.log_string_series(
data={"messages/errors": "Job failed", "messages/info": "Training completed"},
step=1.2,
)