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

Uploaded Python 3

File details

Details for the file swarmauri_embedding_nmf-0.7.1.dev1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.1.dev1.tar.gz
Algorithm Hash digest
SHA256 b768d3aec6f46f5f8ec992f57649f1b740eb68105d2fdd66bc3fed1339968d3d
MD5 50b8bb84a3d8b24a55d4b0eb89b5f8cd
BLAKE2b-256 eab2359399e0e5751a1b63def65ce048e46ceb4f5076f480d86f3597ddfeec4f

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_nmf-0.7.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 52ad174c424c3347c16598d9e2400342994dd1adb02dd77b3dc7c830fa79d695
MD5 f66f58b3361502696e3b2544576eb72b
BLAKE2b-256 692ce4c028c705827f08d87ca642c603817e54b1d8aa584d427b70f985f6f29f

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