WaveletNN blocks and losses
Project description
Wavelet Neural Networks
pip install waveletnn
Package provides the implementation of orthonormal and biorthogonal wavelet transforms via convolutions. Batch multi-channel one- and -two-dimensional data is supported. For analysis kernels of even length are supported, while for inverse transform (synthesis) kernels are required to have length 4k + 2. The blocks are:
OrthonormalWaveletBlock1DOrthonormalWaveletBlock2DBiorthogonalWaveletBlock1DBiorthogonalWaveletBlock2DInverseWaveletBlock1DInverseWaveletBlock2D
Package provides loss functions for wavelet's kernels regularizations to preserve features of both orthonormal (OrthonormalWaveletRegularization) and biorthogonal (BiorthogonalWaveletRegularization) wavelets while training. The features are admissibility (sum of coeffs), orthogonality and regularity. For more info on training see notebooks directory.
The package can use wavelets from the PyWavelets library. If the library is not yet installed use pip install waveletnn[pywt] for full installation. The wavelet blocks can be constructed by providing the name of the wavelet to be used (see pywt.wavelist()) or by manually providing scaling filter for orthonormal blocks and scaling and wavelet analysis filters for biorthogonal wavelets. Note, that results of transform blocks are different from the results of the pywt functions: the approximation from each level is half its input no matter what signal extension mode is used.
The signal extension (padding) is performed via separate module PadSequence. Extension modes are:
- "constant" --
... v v | x1 x2 ... xn | v v ..., with defaultv = 0(same as intorch, default behavior corresponds to "zero" padding inpywt) - "circular" --
... xn-1 xn | x1 x2 ... xn | x1 x2 ...(same as intorch, corresponds to "periodic" padding inpywt) - "replicate" --
... x1 x1 | x1 x2 ... xn | xn xn ...(same as intorch, corresponds to "constant" padding inpywt) - "reflect" --
... x3 x2 | x1 x2 ... xn | xn-1 xn-2 ...(same as intorchandpywt) - "antireflect" --
... (2*x1 - x3) (2*x1 - x2) | x1 x2 ... xn | (2*xn - xn-1) (2*xn - xn-2) ...(same as inpywt, not present intorch)
For examples on usage see notebooks directory.
Project details
Release history Release notifications | RSS feed
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 waveletnn-0.3.4.tar.gz.
File metadata
- Download URL: waveletnn-0.3.4.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c765ad7fe2bbb157527dfea3ea12a9cfbf2570199686ef7f06648ae4c91f241
|
|
| MD5 |
e1b0a167caedad08b94f85f63902203c
|
|
| BLAKE2b-256 |
e2e72cc216686962a502463c6f15f13f657078f390cdde7e5a78db108fec2156
|
Provenance
The following attestation bundles were made for waveletnn-0.3.4.tar.gz:
Publisher:
pypi-publish.yml on Scurrra/WaveletNN-PyTorch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
waveletnn-0.3.4.tar.gz -
Subject digest:
2c765ad7fe2bbb157527dfea3ea12a9cfbf2570199686ef7f06648ae4c91f241 - Sigstore transparency entry: 493430621
- Sigstore integration time:
-
Permalink:
Scurrra/WaveletNN-PyTorch@5fa2b5230bddbd6e164583559f34886ad8f7bc91 -
Branch / Tag:
refs/tags/0.3.4 - Owner: https://github.com/Scurrra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5fa2b5230bddbd6e164583559f34886ad8f7bc91 -
Trigger Event:
release
-
Statement type:
File details
Details for the file waveletnn-0.3.4-py3-none-any.whl.
File metadata
- Download URL: waveletnn-0.3.4-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1546f4f401ad743e165a7c246b8fca5f7a57ebc78329ee780081b777e37ac925
|
|
| MD5 |
07b440212d3b360158de4d570e986a27
|
|
| BLAKE2b-256 |
56b57887634c37c8cd79d7b04393411a3c48766080630bb2c8fd28cf4efa64c4
|
Provenance
The following attestation bundles were made for waveletnn-0.3.4-py3-none-any.whl:
Publisher:
pypi-publish.yml on Scurrra/WaveletNN-PyTorch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
waveletnn-0.3.4-py3-none-any.whl -
Subject digest:
1546f4f401ad743e165a7c246b8fca5f7a57ebc78329ee780081b777e37ac925 - Sigstore transparency entry: 493430679
- Sigstore integration time:
-
Permalink:
Scurrra/WaveletNN-PyTorch@5fa2b5230bddbd6e164583559f34886ad8f7bc91 -
Branch / Tag:
refs/tags/0.3.4 - Owner: https://github.com/Scurrra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5fa2b5230bddbd6e164583559f34886ad8f7bc91 -
Trigger Event:
release
-
Statement type: