gluonts.dataset.jsonl module

class gluonts.dataset.jsonl.JsonLinesFile(path: pathlib.Path, cache: bool = False)[source]

Bases: object

An iterable type that draws from a JSON Lines file.

Parameters

path – Path of the file to load data from. This should be a valid JSON Lines file.

class gluonts.dataset.jsonl.Line(content, span)[source]

Bases: tuple

property content

Alias for field number 0

property span

Alias for field number 1

class gluonts.dataset.jsonl.Span(path, line)[source]

Bases: tuple

property line

Alias for field number 1

property path

Alias for field number 0

gluonts.dataset.jsonl.dump(objects, file_obj)[source]
gluonts.dataset.jsonl.load(file_obj)[source]