Skip to main content

Keras Embedding Similarity

Version License

[中文|English]

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)

Source distribution for keras-embed-sim 0.10.0
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

Release history Release notifications | RSS feed

This release

0.10.0 This release

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page