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.9.0.dev3.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.9.0.dev3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_embedding_nmf-0.9.0.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.9.0.dev3.tar.gz
Algorithm Hash digest
SHA256 8144953056732e15ee6281c03549aefe3f24a6e01d01be68057785c18368d188
MD5 7cacbcb7a6766fb76f40b4c17b2a11a8
BLAKE2b-256 71b82fa84462a459b632ab210cba38ac8c7c9b6b22770d9d0a7c19cc4d53a3e7

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_nmf-0.9.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.9.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 412ebf10995a0e0df360e3310ce3006b3ef368c821894b4882f794c2da3e70d9
MD5 e6587b1d31d15e052e42546480c055f5
BLAKE2b-256 e1a71b4bbebec6ff525fcfc35bf74148d4f23acca7d92a998c5f443e5a16189b

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