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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev5.tar.gz
Algorithm Hash digest
SHA256 19b689bb2fde4599fe441ecb3776adcf25bac64b9b6038cd6d9eb709e427a8be
MD5 dd4e1d06da078e22d985bca528889b10
BLAKE2b-256 7b7f4943e7d10199588b29db266b6d1e7ef1bb85b37d1f45f144bd08add131d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b9114cd32ed2226818e36fdf02df3a89d203cbdc3acfe1a5da9ad12335018b1
MD5 a27a1d6c370b6a4ca8d51b1ec724916b
BLAKE2b-256 61b114f541f532dc986307740ff9edd7e0d45775d9479a98c9ba76deee8fda16

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