Skip to main content

NMF Embedding for Swarmauri.

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


NMF Embedding Package

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.0.dev8.tar.gz (7.0 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.0.dev8-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_embedding_nmf-0.7.0.dev8.tar.gz.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev8.tar.gz
Algorithm Hash digest
SHA256 e326bdd5158d675bb489a047c15aa050f0adc346e37e6dc572eb1f577d7f1f90
MD5 df87e032de1a1bc6e8e12e282efa43ab
BLAKE2b-256 7e294d10d056c16f0b9112c13e8dfe345a5c840960c9142e70811f7f83202f06

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_nmf-0.7.0.dev8-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev8-py3-none-any.whl
Algorithm Hash digest
SHA256 bdaf5041d1bcbb49b82cbed94be658042dfc618d992caf501e191ef91eb45df8
MD5 4f96e01a5ef4f6ca2a959dace6475644
BLAKE2b-256 fb522a3bb27001a300c6461adb6a86181a454b148ec3e1bad6ee77db29b4a006

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