gluonts.dataset.jsonl module#
- class gluonts.dataset.jsonl.JsonLinesFile(path: ~pathlib.Path, start: int = 0, n: ~typing.Optional[int] = None, line_starts: ~typing.List[int] = <factory>)[source]#
Bases:
object
An iterable type that draws from a JSON Lines file.
- Parameters:
path (pathlib.Path) – Path of the file to load data from. This should be a valid JSON Lines file.
- SUFFIXES = {'.json', '.json.gz', '.jsonl', '.jsonl.gz'}#
- line_starts: List[int]#
- n: Optional[int] = None#
- path: Path#
- start: int = 0#
- class gluonts.dataset.jsonl.JsonLinesWriter(use_gzip: bool = True, suffix: str = '.json', compresslevel: int = 4)[source]#
Bases:
DatasetWriter
- compresslevel: int = 4#
- suffix: str = '.json'#
- use_gzip: bool = True#