Skip to main content

Library for common data transformations utilizing only the standard Python library and/or Numpy. Includes transposition, time series windowing, cross-correlation.

Project description

TCEV Data Transformation Library

Library for common data transformations used in machine learning models, utilizing only the standard Python library and/or Numpy. Includes transposition, time series windowing & cross-correlation.


Description

The repository contains 3 data transformation and associated unit tests for the following functions:

  • transpose2d -> a function that takes in a 2D matrix of real numbers and swaps the axis (standard transpose logic).
  • window1d -> a function that converts a 1D list / np.array into window subsets of the input, given additional parameters on size of window, shift between windows & stride within a window.
  • convolution2d -> a function that takes an input 2D array, a kernel 2D array and combines them to produce a 2D array using cross-correlation operations. Allows for an optional stride parameter, which determines the slide or "shift" between cross-correlation operations.

The repo has been packaged, built and published to PyPi.


Dependencies

  • Poetry
  • Numpy
  • Pytest (for running user tests only)

After cloning the repository, run bash command poetry install.


Authors

Ernestas Vainorius @LinkedIn


Version history

  • v1.0.0:
    • Added an additional unit test for convolution2d for testing larger matrices.
    • Changed src directory name to tcev_transformation to allow easier to understand library import post publishing.
    • Finalized README.md.
    • Packaged, built and published repo to PyPi.
    • See change notes
  • v0.3.0:
    • Created a convolution2d function that takes an input 2D array, a kernel 2D array and combines them to produce a 2D array using cross-correlation operations.
    • Created unit tests for checking convolution2d functionality and parameter intake.
    • See change notes
  • v0.2.0:
    • Implemented window1d function, which allows to create window subsets from a starting input array/list, with additional parameters for window size, shift between each window, stride within a window.
    • Wrote unit tests for transpose2d & window1d functions
    • See change notes
  • v0.1.0:
    • Created transpose2d function, which allows for transposition of any 2D real-number matrices
    • Base file structure created, including Poetry files for dependency management
    • See change notes

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

tcev_transformation-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

tcev_transformation-1.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file tcev_transformation-1.0.1.tar.gz.

File metadata

  • Download URL: tcev_transformation-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for tcev_transformation-1.0.1.tar.gz
Algorithm Hash digest
SHA256 91b66412fdf05dde69956bfc0b2208140a7a6f00c25f7d976b2838b68fe94e35
MD5 b9760ea8095f54f9735be18c970cf733
BLAKE2b-256 838650e7ac4b2481c7b39a43fbf2dc5390d24d0b25b7be024731f5f32bcb6f78

See more details on using hashes here.

File details

Details for the file tcev_transformation-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tcev_transformation-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for tcev_transformation-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 388fa108e6e620a133edf690b9f9a5b5aef26aa991fcccf3931d9958661b5237
MD5 674cfc9cf7acdb368e33165d917569c6
BLAKE2b-256 be21478266c0cab1286f75920240799f514c0e05bf7c2037446aea1dd4e733e7

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