Skip to main content

No project description provided

Project description

Data Transformation Library by Paula

The data-transformation-library-paula is a Python package focused on providing essential tools for matrix operations and data transformations. These functions are fundamental for handling and processing data in areas like machine learning, signal processing, and image processing.

Project Description

This package includes three key functionalities:

  • transpose2d: Transposes a 2D matrix.
  • window1d: Facilitates the generation of sliding windows over a 1D input array, ideal for time series analysis.
  • convolution2d: Implements a 2D cross-correlation operation, which is pivotal in the field of image processing and neural networks.

These functions are crafted to support researchers, data scientists, and developers by simplifying complex operations into manageable, reusable components.

Features

Transpose

  • Function: transpose2d(input_matrix)
  • Input: input_matrix - a list of lists of real numbers.
  • Output: Transposed matrix as a list of lists of real numbers.
  • Required dependecies: Pure Python, using standard library.

Time Series Windowing

  • Function: window1d(input_array, size, shift=1, stride=1)
  • Inputs:
    • input_array: List or 1D Numpy array of real numbers.
    • size: Integer, size (length) of the window.
    • shift: Integer, shift (step size) between windows.
    • stride: Integer, stride (step size) within each window.
  • Output: List of lists or 1D Numpy arrays of real numbers.
  • Required dependecies: Python and Numpy.

Cross-Correlation

  • Function: convolution2d(input_matrix, kernel, stride=1)
  • Inputs:
    • input_matrix: 2D Numpy array of real numbers.
    • kernel: 2D Numpy array of real numbers.
    • stride: Integer, stride value.
  • Output: 2D Numpy array of real numbers.
  • Required dependecies: Python and Numpy.

Installation

The library is available on PyPI and can be installed using pip:

pip install data-transformation-library-paula

Usage

After installation, the functions can be imported and used in Python scripts or Jupyter notebooks.

Example usage:

from data_transformation_library_paula import transpose2d, window1d, convolution2d

# example for transpose2d
matrix = [[1, 2, 3], [4, 5, 6]]
transpose2d(matrix)

# example for window1d
input_array = [1, 2, 3, 4, 5, 6]
size = 3
shift = 2
window1d(input_array, size, shift)

# example for convolution2d
input_matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
kernel = [[1, 0], [0, -1]]
stride = 2
convolution2d(input_matrix, kernel, stride)

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

data_transformation_library_paula-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file data_transformation_library_paula-0.1.0.tar.gz.

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.0.tar.gz
Algorithm Hash digest
SHA256 470caf582a186ae992659d4d1525c076021db8ec5d298a64ed84d596842b6f24
MD5 31fe89807db1b3f6d07d70d342c438bc
BLAKE2b-256 d3a2bd775b0c65fe0f96b6307a806553040641a46301d9aad092b7cceba3a71a

See more details on using hashes here.

File details

Details for the file data_transformation_library_paula-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60022e7f030e63ca6c1a51c7878e409f7a73744ce71a8084fa6419c6d0c13c95
MD5 1fe9cc9936834e2e9179e64324ad102a
BLAKE2b-256 a35b5b66f04682af7b911d97407e613b8b9afb9f6883103d2577596152d3809e

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