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

Uploaded Python 3

File details

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

File metadata

  • Download URL: swarmauri_embedding_nmf-0.6.1.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.tar.gz
Algorithm Hash digest
SHA256 c62dd0355e64dba9dfc898dae521f992899faedde9c6ff6d90c80621504002c5
MD5 500ad27082f44b071224de9062ccdfc1
BLAKE2b-256 3e01b1880ded53c8d7e2f6f413729c102f9fdd9e7a98bb3f75de38a5b47db1cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_embedding_nmf-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af38277175259d16f976fb9faeaf5fd3e1b936b4322b8e23ee97cc265b759136
MD5 63034957dd4271e94fdf1285597a5fff
BLAKE2b-256 f02899ae851ef47547e2e41cbf07606adfdd83675df2d0d972551d44a835860b

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