Skip to main content

A lightweight library to do for-loop-styled convolution passes on your iterable objects (e.g.: on a list).

Project description

Description

Conv is a simple Python >= 3 package, lightweight library to do for-loop-styled convolution passes on your iterable objects (e.g.: on a list).

Installation

pip install conv

Example Usage

from conv import convolved


some_list = [1, 2, 3]
for kernel_hover in convolved(some_list, kernel_size=2, stride=1, padding=2, default_value=42):
    print(kernel_hover)

Result:

[42, 42]
[42, 1]
[1, 2]
[2, 3]
[3, 42]
[42, 42]

Unit Tests:

python setup.py test

A convolved_2d function also exists. See tests for more examples.

Notes

License: MIT

Author: Guillaume Chevalier

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

conv-0.2.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file conv-0.2.tar.gz.

File metadata

  • Download URL: conv-0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for conv-0.2.tar.gz
Algorithm Hash digest
SHA256 0a67cbf4a72a6bc2947e731e5305d887142666ec6cf71694522bc0a2534e7980
MD5 8396b712ae698d6e83ab4fc09837404f
BLAKE2b-256 2ee17f158b51a8834df8b2d3dd220be5fc61d7988b17135519b862c80efe8f37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page