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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.9.0.dev2.tar.gz
Algorithm Hash digest
SHA256 05cef0a7beca9db9cb425dbe5f2159308a621b9a7b1032444e149e168452916b
MD5 5045a8a7aa83680c7f4d39822a6f04e1
BLAKE2b-256 53d19f97f6a2efe7118a10dae21d337476bdf1ca90cf5cad17f7da7458640b83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.9.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ceb01e048aa5dafff73030890248e5c658de45de2eceadf39bd6666b69a0891
MD5 2c5c9a2547789cb589a0c6b55ef12cd0
BLAKE2b-256 287600cad28b6def9f49d84fe60599da7d85207930fb0072b528b7ca54e57c50

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