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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev9.tar.gz
Algorithm Hash digest
SHA256 58e8503b5e43a402dee5e39a77188877be277824d4af741359e282739c5f3ae5
MD5 445500513ce0b35a27f5cb3e87fda56d
BLAKE2b-256 1678148f3ea1cbda23470a863e2e138546ea76617f1a458455b167bad341fe0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev9-py3-none-any.whl
Algorithm Hash digest
SHA256 116202612fd037c984f144cb4bd92a40afead77ce4546b965ad5c6d251a8dc29
MD5 aadc2e1c7c73cd80d63ae6bd4087b33c
BLAKE2b-256 ece0d86cf9ce0ee353da5ef6a829ee3fc0806b64e5f32bf6f4b72b0e0c85b005

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