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.dev12.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.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev12.tar.gz
Algorithm Hash digest
SHA256 6d431471f008d5467b0301e91f59e8e8171e40e5fad31304126ce4913674bc31
MD5 4593f07bd873f84b50d5ba319c2b0f39
BLAKE2b-256 2520ea231e9bec42fde3623dfb260a4891875d5260ad4b835fecd75d3f24f6cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.7.0.dev12-py3-none-any.whl
Algorithm Hash digest
SHA256 e8292cb5cc6ad40c2aa9c1560468faec5e2dd442b873bb73bf72385373f1592e
MD5 a69ed567f8c4b1416ee3bc6935efb851
BLAKE2b-256 d66103013fa0c2780335b65536ad7cc1fb6b5b932d7ac32d00aa3f15f1704fd3

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