Skip to main content

Data visualization tool based on JSON files.

Project description

jsonboard

Fancy interface for ML experiments based on JSON/JSONL log files.

Install

pip install jsonboard

Logging directory

JsonBoard expects the logging directory to be structured like the following:

main_directory
├── experiment_name_1
│   ├── version_0
│   │   ├── hparams.json
│   │   ├── meta.json
│   │   └── data.jsonl
│   └── version_1
│       ├── hparams.json
│       └── data.jsonl
├── experiment_name_1
│   └── version_0
│       └── data.jsonl
└── ...

data.jsonl is not just a JSON to enable easy appending of new results.

Examples

Follow a few log files to take as example.

hparams.json

{

    "learning_rate": 1e-05,
    "batch_size": 32,
    "devices": 8,
    "accelerator": "gpu",
    "num_warmup_steps": 10000,
    "max_steps": 100000,
    "alpha": 0.5,
    "train_filepath": "datasets/wikiqa"
}

meta.json

{
    "environment": "google_cloud"
}

data.jsonl

Some field may even be null, the corresponding points will not be plotted.

{ "step": 1000, "training/accuracy": 0.9 }
{ "step": 2000, "training/accuracy": 0.7 }
{ "step": 3000, "training/accuracy": 0.6 }
{ "step": 4000, "training/accuracy": 0.4 }
{ "step": 5000, "training/accuracy": 0.3 }
{ "step": 6000, "training/accuracy": 0.1 }
{ "step": 7000, "training/accuracy": null }
{ "step": 7000 }

An example of loggings directory is examples/.

Run the server

Start the server with:

jsonboard --input /path/to/logging/dir

or just try our framework by running the following (you must download the examples/ folder):

jsonboard --input examples/

Additional parameters

List additional CLI parameters with:

jsonboard --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

JsonBoard-0.3.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

JsonBoard-0.3.0-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file JsonBoard-0.3.0.tar.gz.

File metadata

  • Download URL: JsonBoard-0.3.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.11

File hashes

Hashes for JsonBoard-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ab96b3c72155be151bba6f588e553a1b529969639f271636d07b62577b137545
MD5 9213e261184d3fd4a75c8ce6790dd490
BLAKE2b-256 ec6203c8d5860d57c2e4699c94efe4030d49f131f3ce672cd2d1aa7889651801

See more details on using hashes here.

File details

Details for the file JsonBoard-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: JsonBoard-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.11

File hashes

Hashes for JsonBoard-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bdc6630ed955b61812f07f3ca5e2342430e58528232df21f42d752ffe85c501
MD5 cc89139f42178d270029504d619a643e
BLAKE2b-256 7e880de86f2c282e9e59b6f6d468b5fe998892223312a3c384b65ef9ebc7d0a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page