Keras Embedding Similarity
Compute the similarity between the outputs and the embeddings.
Install
pip install keras-embed-sim
Usage
from tensorflow import keras
from keras_embed_sim import EmbeddingRet, EmbeddingSim
input_layer = keras.layers.Input(shape=(None,), name='Input')
embed, embed_weights = EmbeddingRet(
input_dim=20,
output_dim=100,
mask_zero=True,
)(input_layer)
output_layer = EmbeddingSim()([embed, embed_weights])
Metadata
Release files for keras-embed-sim 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| keras-embed-sim-0.10.0.tar.gz | 3.6 kB | Details |
Release files / keras-embed-sim-0.10.0.tar.gz
| Download URL | keras-embed-sim-0.10.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
164a591168c757d18212a1bd4983ed015a9bc2d148e1878bcd01c2ba712c375b
|
|
BLAKE2b-256 checksum How to use checksums |
d9ac641978394aaa28d90a81ae3e999ed8206c4c3223b7a668a5aa9ed6034db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|