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.6.1.dev14.tar.gz (6.9 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.6.1.dev14-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_embedding_nmf-0.6.1.dev14.tar.gz.

File metadata

  • Download URL: swarmauri_embedding_nmf-0.6.1.dev14.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for swarmauri_embedding_nmf-0.6.1.dev14.tar.gz
Algorithm Hash digest
SHA256 b70a2937403bb85369e0495c9a89ffe7c1c9d8ee7e04061d002ddf0625cbb612
MD5 47e379cdc6994933d86f2ba5b3768658
BLAKE2b-256 fa3516afcf3e67093fb45d27228f14b18bbae8e033adcbf6aea20328085e160c

See more details on using hashes here.

File details

Details for the file swarmauri_embedding_nmf-0.6.1.dev14-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.6.1.dev14-py3-none-any.whl
Algorithm Hash digest
SHA256 7682ade499d71d3a6425801d5a70b3b24a3b4fa1ff945e66d7ae330849c576f5
MD5 08c7b8d2851041df65ebe7cfc9aa7661
BLAKE2b-256 ab0429aaf07425daad1d9b79fbbd505ca9cd4ecddf6d8cb78ed6fcc1b4a2bdea

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