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.2.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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: viznu-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f7604c570857f9fa0ff44334a571a6b0ba7f347d5cfc38dec6db7c5f939cb7d0
MD5 6345b8f558822d202deb8d4bf816b425
BLAKE2b-256 7c6d3a5afc54aa34004d1c21d01e5e7c4f23334d9e4d9b315ef4b602564ea61e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viznu-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e6e440c8bc5ee2e7e4372766155fe83f84a6015c1c500154c6ee9b93fa05369
MD5 776403440e0b043b0ab22e38f9ce3198
BLAKE2b-256 50a3cc0824e434b0bd6a8f97000d9af8aad6c7a91d8850e3fafc293beb7e1872

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