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.5.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.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.5.tar.gz
Algorithm Hash digest
SHA256 f57c6e28a904731945844408210e8d36c317ee4110844f498e60682a788966fc
MD5 d0025d828a638e27090a47581a1cceeb
BLAKE2b-256 40562ba180303029cfbb9e3092b15a13a96b2079f8d4a95cf7252feebfe41ef1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2f9ddcefd17cf93b4d11a34e299e1a6d69b2bb81752267939eb0dc0fb91c0285
MD5 054ba3f55344a7d171e7d053742899c9
BLAKE2b-256 d7ee9b067bed53c7ca12fea05dc979b0dfd769da26bbe555b57f7eb8f276ec49

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