Skip to main content

NMF Embedding for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_embedding_nmf


Swarmauri Embedding Nmf

A Non-negative Matrix Factorization (NMF) based embedding implementation for text data processing in the Swarmauri ecosystem.

Installation

pip install swarmauri_embedding_nmf

Usage

Here's a basic example of how to use the NMF Embedding:

from swarmauri.embeddings.NmfEmbedding import NmfEmbedding

# Initialize the embedder
embedder = NmfEmbedding(n_components=10)

# Example documents
documents = ["This is the first document", "This is the second document", "And this is the third one"]

# Fit and transform the documents
vectors = embedder.fit_transform(documents)

# Transform a new document
new_vector = embedder.infer_vector("This is a new document")

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Project details


Download files

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

Source Distribution

swarmauri_embedding_nmf-0.7.4.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_embedding_nmf-0.7.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_embedding_nmf-0.7.4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.4.tar.gz
Algorithm Hash digest
SHA256 aae91d399928812c1bcc16ef79e8cf5cadb2cd7b8374b512701aa5e274429e50
MD5 2fd5eaf7c6453ab6c199e070ef9a8ea5
BLAKE2b-256 36779b72c6dfb4643378d4873fc1d27aba1615b533e16d68102720d04d151e65

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_nmf-0.7.4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d58f4b09a5ad9e183f06228366a6c0e931e8490c9949bbd27ffa5ff16156fa
MD5 955f611e0212031d0df81d76a497e36a
BLAKE2b-256 a99547e0344a1a56f61025f0f38ef54d2f282c146564c5aacb01d4418c6edb05

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