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

Uploaded Python 3

File details

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

File metadata

  • Download URL: viznu-0.2.5.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.5.tar.gz
Algorithm Hash digest
SHA256 249360aa16c73da61621654498fa5db4fab9fa220fd4ba03edb5d28d91a22d71
MD5 a7890336543013da5cb4d255571e071f
BLAKE2b-256 3fe0c8d8ca92f1719034674576b91655c454d106773d260f34f38fc87bb6595e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viznu-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 305e7a1882b2b5be548fb475a02d3e2e1a24f4e1ac1d8e13a3e93a2386bf609a
MD5 2b6d818c66a2bafee59f62c52eeac349
BLAKE2b-256 afda26d91c53fb30a33c9e85adcb4bd4f69d8a1ea2125a0ef34a3c7c73179995

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