Skip to main content

qdvis: Quick data visualizer.

Project description

qdvis (Quick Data Visualizer)

This is a tool to easily visualize the logs when long time processing is required by simply starting up a local server.

Installation

pip install qdvis

Usage

  1. Exmaple of code. Let the log be added to the writer object anywhere in the code (e.g., loop).
from qdvis.writer import LogWriter

writer = LogWriter()

num_epochs = 10
for epoch in range(num_epochs):
    for inputs, targets in data_loader:
        outputs = model(inputs)
        loss = criterion(outputs, targets)
        optimizer.zero_grad()
        loss.backward()
        optimizer.step()
    
    print(f"Epoch {epoch+1}/{num_epochs}, Loss: {loss.item()}")

    writer.add_scalar(x_value=epoch, y_value=loss.item())
  1. You can start a terminal and launch a local server for visualization with the qdvis command.
qdvis --logpath ./logs/log.json --port 8000
  • --logpath: path for log file.
  • --port: port of local server.

Methods

gpu utilization can be added to the log

add_scaler(x_value, y_value)

Parameters

  • x_value(float): x scaler value of 2D chart.
  • y_value(float): y scaler value of 2D chart.

2D chart can be added to the log

add_gpu_status()

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

qdvis-0.1.2.tar.gz (514.5 kB view details)

Uploaded Source

Built Distribution

qdvis-0.1.2-py3-none-any.whl (521.8 kB view details)

Uploaded Python 3

File details

Details for the file qdvis-0.1.2.tar.gz.

File metadata

  • Download URL: qdvis-0.1.2.tar.gz
  • Upload date:
  • Size: 514.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for qdvis-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fe334e5f0a3815fd6b0e175ac8e2586947ec961a17efe489d1459baa1298e85d
MD5 d8680264872d36405ff9eb05af47e832
BLAKE2b-256 ec80b80a5a922106e8ba91cc9634ab30f8e078431a6f7a4555f29958c34d5c3c

See more details on using hashes here.

File details

Details for the file qdvis-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: qdvis-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 521.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for qdvis-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3cc3af196683ab68e4f3511deff444ffaf640c4bdf20115be1d721bb50327745
MD5 51c09f5ca3a9c9343e0225a09523dceb
BLAKE2b-256 643211b200e2625605fd384024acd6e7595c246262bc523b93ccb3fb95b2ee5d

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