Skip to main content

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

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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2e4d6e4263fb5da3ba3a283c7709fe02fc244adc98116061b302279a50a5240c
MD5 a5825b8e9a6446cd25bd44d4b8743777
BLAKE2b-256 6b6bdfb13563761fbe4cf810b4f577f913fdc6f8c2b7c889083cd7a0637cc843

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1eb11784bb6ab42d7b52cdedd466e45ca542f70adccf960a0e76457b0b0cb676
MD5 f58a689b88672e4aa7253ddc46440eae
BLAKE2b-256 973ba40325a7c011671368668d792e68f68f0f880e8902e39bc277a0b397c58e

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