Skip to main content

No project description provided

Project description

Viznu

Viznu is a simple and intuitive library for data visualization and preprocessing for machine learning (ML) and deep learning (DL) applications. It abstracts away the complexity of handling dataframes and generating visualizations, allowing you to quickly gain insights from your data with minimal code.

Features

  • Load train, test, and validation datasets easily.
  • Display high-level information about loaded datasets.
  • Generate various types of visualizations for data exploration.
  • Print detailed information and distribution plots for specific columns.

Installation

You can install Viznu using pip:

pip install viznu

Usage

Here’s an example of how to use Viznu:

from viznu import Viznu

# Create an instance of Viznu
viz = Viznu()

# Load all datasets from the specified directory
viz.loadAll("./datasets")

# Print high-level information about all loaded datasets
viz.info()

# Print detailed information about the training dataset
viz.infoFor('train')

# Set the current dataset to 'train'
viz.setCurrentDatasetTo('train')

# Plot the distribution of a specific column
viz.plot_distribution('Annual_Premium')

# Print detailed information and plot the distribution of a specific column
viz.colInfo('Annual_Premium')

Methods

Data Loading

  • loadTrainData(path: str): Load training data from the specified CSV file.
  • loadTestData(path: str): Load test data from the specified CSV file.
  • loadValidationData(path: str): Load validation data from the specified CSV file.
  • loadAll(directory: str = '.'): Load train, test, and validation data files from the specified directory. Assumes files are named as train.csv, test.csv, and validation.csv.

Information Display

  • info(): Print high-level information about the loaded datasets.
  • infoFor(data_type: str): Print detailed information about the specified dataset (train, test, validation, or all).

Visualization

  • plot_distribution(column: str, kind: str = 'box'): Plot the distribution of the specified column. Supported plot types are box and hist.
  • colInfo(col: str): Print detailed information and plot the distribution of the specified column in the current dataset.

Dataset Management

  • setCurrentDatasetTo(type: str): Set the current dataset to the specified type (train, test, or val).

Examples

Loading Datasets

viz.loadTrainData("path/to/train.csv")
viz.loadTestData("path/to/test.csv")
viz.loadValidationData("path/to/validation.csv")

Displaying Information

viz.info()
viz.infoFor('train')

Visualizing Data

viz.plot_distribution('Annual_Premium', kind='hist')
viz.colInfo('Annual_Premium')

License

This project is licensed under the MIT License.

Contributions

Contributions are welcome! Feel free to submit a pull request or open an issue on GitHub.

Author

Apekshik Panigrahi - apekshik@gmail.com

Acknowledgments

Inspired by the need to simplify data visualization and preprocessing in ML and DL workflows.

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

viznu-0.2.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viznu-0.2.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file viznu-0.2.4.tar.gz.

File metadata

  • Download URL: viznu-0.2.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for viznu-0.2.4.tar.gz
Algorithm Hash digest
SHA256 5a6794eed430cc419b2035ffae4de401d6e7f8a927ff3d7debd6fe5f88299d76
MD5 b134cdaf5a4cd49df6adaf0f2e501b3c
BLAKE2b-256 992b9eba81e79bbfe40f126780282ce3abac9267d82898ede0151b3eb524cc68

See more details on using hashes here.

File details

Details for the file viznu-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: viznu-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for viznu-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e3173954316a26834630a1a34f5b27e436cc958b838b68c2a5bf11b27f1f434
MD5 b5fc3fe3a6389826d2a878c4cfdfd8c4
BLAKE2b-256 7d7dd232c98c104bf0ce38cbd20af2bcca983c84f1751027756227dd07a1ab74

See more details on using hashes here.

Supported by

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