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 transformation_functions
import numpy as np

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

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

# example for convolution2d
input_matrix = np.array([[1, 2, 3], [4, 5, 6]])
kernel = np.array([[1, 0], [0, -1]])
stride = 2
transformation_functions.convolution2d(input_matrix, kernel, stride)

Link

Find package here: https://pypi.org/project/data-transformation-library-paula/

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.3.tar.gz (4.1 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.3.tar.gz.

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3f66d7aa500984c512629f4227642c189aafcc9c8db95f210f90edef0b57a97f
MD5 afe875d22b8483ca0ede57b9daefb793
BLAKE2b-256 c6a2f946d387d1ee09bd766656b3b769fb5a2f9fa392efb54338f245f48d6e90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7a4a07c529e016cd677657b0de10ce0214066eca456e6a3a60b0f94ed104502
MD5 1dc4366425ae1bc5e44904c0b0bf8c06
BLAKE2b-256 d5171d67436a9471887a4d89ea4add1f09b84c024223320f11d74a558ceb041d

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