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

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c8782c8c1d2ffeb1ac448c230206f949f8b4d04854df7d6bd2fdac51a0bd14f0
MD5 3a5f6b02b12b39ce247593313bc3a287
BLAKE2b-256 9f489f76389d49969fc71f4e02247ae0a75211afe5173b37a6cffd9890cbcce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for data_transformation_library_paula-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be0333fff440c3aa9febbc1cd788365e5c3e9dfea4204e282c4cc47d220969fe
MD5 1cfa08de620fd374238bf0305d53a936
BLAKE2b-256 84db643eee2ee69523d4225a40374b50ea627b8cfdc7e68e7554bd2b3f7d8aed

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