matnets 3.2.4__tar.gz → 3.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {matnets-3.2.4 → matnets-3.2.5}/PKG-INFO +1 -1
- {matnets-3.2.4 → matnets-3.2.5}/pyproject.toml +1 -1
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/activations/exp.py +2 -2
- {matnets-3.2.4 → matnets-3.2.5}/LICENSE +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/docs/index.md +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/__init__.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/__utils.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/_dense.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/_params.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/activations/__init__.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/activations/gated.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/conv/__init__.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/conv/pool.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/lax/__init__.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/lax/attention.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/lax/conv.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/nn/__init__.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/nn/recurrent.py +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/py.typed +0 -0
- {matnets-3.2.4 → matnets-3.2.5}/src/matnets/utils.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "matnets"
|
|
7
|
-
version = "3.2.
|
|
7
|
+
version = "3.2.5"
|
|
8
8
|
description = "A small experimental neural network library where neurons are represented as matrices."
|
|
9
9
|
readme = "docs/index.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -49,7 +49,7 @@ def sst(x: jax.Array) -> jax.Array:
|
|
|
49
49
|
"""Scaled squared tanh activation.
|
|
50
50
|
|
|
51
51
|
Applies element-wise tanh, squares the resulting matrices, and
|
|
52
|
-
scales them by n^-
|
|
52
|
+
scales them by n^-1 where n is the matrix dimension.
|
|
53
53
|
"""
|
|
54
54
|
n = x.shape[-1]
|
|
55
55
|
t = jnp.tanh(x)
|
|
@@ -62,7 +62,7 @@ def sss(x: jax.Array) -> jax.Array:
|
|
|
62
62
|
"""Scaled squared sigmoid activation.
|
|
63
63
|
|
|
64
64
|
Applies element-wise sigmoid, squares the resulting matrices, and
|
|
65
|
-
scales them by n^-
|
|
65
|
+
scales them by n^-1 where n is the matrix dimension.
|
|
66
66
|
"""
|
|
67
67
|
n = x.shape[-1]
|
|
68
68
|
t = jnn.sigmoid(x)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|