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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.2.dev1.tar.gz
Algorithm Hash digest
SHA256 0179cb057da2b716482f07c1efb4bb8475e5753586a1a31f19adf7505ac87494
MD5 6fc7a6ac41826884eefbb9d05a6fb60c
BLAKE2b-256 026f70d39a52ff054dd2107de6b25b85376862549e2bd16c1002c126265ca938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 496309f7e79f93db0d68f24716e74e5e8ea4414fa39daf0d7e5dc55199ef7e56
MD5 360906e160e798131fb2c92a64ef1d1c
BLAKE2b-256 1c23d3b5003476b9b781c2f5bb1be750fb244277d94d01ab4ee021da556545c7

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