Skip to main content

NMF Embedding for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads GitHub 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.2.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.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.2.tar.gz
Algorithm Hash digest
SHA256 959d1e308d80c877620acb2af7ad7e63fa17a70f0ace13a6be693e454a5831cb
MD5 f560b6c9408b6f5de84a695a88c6312a
BLAKE2b-256 912d13f092054a34048aa91db2f8069e20dc0bc33031310b2eccd44debbd8b68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcdc4d2c0f3868b42ebc8e65961b5a21c50a218f22f9616367d1a72566d74f18
MD5 377fd4005b7fb30c96c27da26daf76e3
BLAKE2b-256 6045d75b2ea7615cb3583ce631fd8d8acd3f633012885ddc5fc4dca6d785d36d

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