A Python library for multi-view learning: fusion, clustering and embedding.
Project description
polyview
Multi-view clustering and embedding toolkit for Python.
polyview provides sklearn-compatible algorithms for datasets where each
sample is described by multiple independent feature sets (views) — such as
audio + video, text + images, or multi-sensor readings.
Actively maintained successor to the dormant
mvlearnlibrary.
Installation
pip install polyview
For development:
git clone https://github.com/gwendal-debaussart/polyview
cd polyview
pip install -e ".[dev]"
Quick start
import numpy as np
import polyview as pv
# Two views of the same 100 samples
X_audio = np.random.rand(100, 13)
X_visual = np.random.rand(100, 512)
# Wrap in a dataset container
mvd = pv.MultiViewDataset(
[X_audio, X_visual],
view_names=["audio", "visual"], # optional name for user readability
)
# Co-regularized multi-view K-Means
model = pv.cluster.MultiviewKMeans(n_clusters=4, random_state=0)
labels = model.fit_predict(mvd)
fused = pv.fusion.NormalizedFusion().fit_transform(mvd)
What's included
| Module | Contents |
|---|---|
polyview.datasets |
MultiViewDataset — typed container with save/load, split, subsetting |
polyview.fusion |
ConcatFusion, WeightedFusion, NormalizedFusion |
polyview.cluster |
MultiviewKMeans, MultiviewCoRegSpectralClustering, MultiviewCoTrainSpectralClustering |
polyview.embed |
(coming) MVMDS, MultiviewTSNE, GCCA, ... |
polyview.metrics |
(coming) consensus score, view agreement |
polyview.semisupervised |
(coming) CoTraining, label propagation |
polyview.viz |
(coming) view scatter grids, embedding plots |
All estimators are sklearn-compatible: they work with GridSearchCV,
cross_val_score, Pipeline, and clone.
⚖️ License
MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
polyview-0.0.1.tar.gz
(26.0 kB
view details)
File details
Details for the file polyview-0.0.1.tar.gz.
File metadata
- Download URL: polyview-0.0.1.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcbf988529087d23635b4c601b49907ad071e41cf7a5b3d10a97dec76278a413
|
|
| MD5 |
21c15e918ec0e28352a0a2bd75583fe3
|
|
| BLAKE2b-256 |
ffe948e2d617b110eaaf6e7399d0c4814364bec59b28f029b24786d24dd927c8
|