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

Uploaded Python 3

File details

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

File metadata

  • Download URL: viznu-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fb5b17740108b10f9360d54cff4fc10c31c1a1544f684c249e916057a76ad90c
MD5 40af45683f3c231482fa3379f8bed092
BLAKE2b-256 17827f515a4d3915167caacdc9c018f5f2e8e2c0450a8c94cc0888c2a07f910d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viznu-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d973a1261f1f38f27c5978acd979cb9998b4214b735e97cc30f9949acc838e
MD5 698ecd72710519c1f1d1fb5ba05e22b7
BLAKE2b-256 7e9fcfc8164ee41f9d398dce5f7c07eb4932d1b906dfba93b2ce836321e036b5

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