Skip to main content

A package to implement trace pooling layer

Project description

tracepooling-layer

Adaptive pooling layer that applies a non-linear resampling of network activations on the temporal axis by applying a data-dependent temporal warping, which samples densely in information-rich regions and sparsely in information-poor regions.

I. Martin-Morato, M. Cobos and F. J. Ferri, "Adaptive Distance-Based Pooling in Convolutional Neural Networks for Audio Event Classification," IEEE/ACM Transactions on Audio, Speech and Language Processing, 2020.

TraceLayer is an adaptive (non-trainable) pooling layer which performs a non-linear temporal transformation that follows a uniform distance subsampling criterion on the deep feature space.

The layer can be applied to any convolutional neural network model for sound event recognition, increasing the performance of the pre-trained model when there are mismatching test conditions.

Installation

pip install tracepooling

Usage

TraceLayer is implemented as a tensorflow layer, so it can be added in a tensorflow model as:

from tracepooling.TraceLayer import TraceLayer
x = TraceLayer(2)(previous_layer)

Where the input parameter is the desired downsampling factor for the time dimension.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracepooling-0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

tracepooling-0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file tracepooling-0.1.tar.gz.

File metadata

  • Download URL: tracepooling-0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for tracepooling-0.1.tar.gz
Algorithm Hash digest
SHA256 d70976ce643bf0348dd164cd79d6d145d78c3fa6b36ae54f8b5e88e8a51bc4b5
MD5 990b8af5393ed49eff61304fa386f8ab
BLAKE2b-256 7f2864a464676ca67d3b1de1971f7d42af4f5bbfd0eda4a172ca7261f5e88a43

See more details on using hashes here.

File details

Details for the file tracepooling-0.1-py3-none-any.whl.

File metadata

  • Download URL: tracepooling-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for tracepooling-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d04e0b712022f77696c073b76ef55e1a0965127ecc8b8b23b3f1b7c8cbb412f
MD5 6513662721e21a218e3808627b86d07d
BLAKE2b-256 26c55edd9e555b7bee3c798284aaa366822978cc8dc891319bb34a3d0337b1f4

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