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)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file data_transformation_library_paula-0.1.4.tar.gz.
File metadata
- Download URL: data_transformation_library_paula-0.1.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2456f52453428493813089485764795e58a5e254d967ff93ab84b234a833f0dd
|
|
| MD5 |
1fd35dea431a4f8c55fc1b44c0afe7b1
|
|
| BLAKE2b-256 |
5e07863afc8c69d471054e29edcd4d54ccc7c580279160671c9ff67e8aae211d
|
File details
Details for the file data_transformation_library_paula-0.1.4-py3-none-any.whl.
File metadata
- Download URL: data_transformation_library_paula-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77f12e3bb0b59285848f398703181504581f45ace5e8b8cba224e653107ba6f0
|
|
| MD5 |
bdb6e0e9a5325688e6f4d7c57732904d
|
|
| BLAKE2b-256 |
99f218f21d759db11af544310ce862d5974220f16dc34e46c4de760c804fde50
|