enp1s0 / ksvd

A ksvd implementation written in python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

K-SVD

An K-SVD implementaion written in Python.

Build Status PyPI

Installation

pip install ksvd

Usage

import numpy as np
from ksvd import ApproximateKSVD


# X ~ gamma.dot(dictionary)
X = np.random.randn(1000, 20)
aksvd = ApproximateKSVD(n_components=128)
dictionary = aksvd.fit(X).components_
gamma = aksvd.transform(X)

Feature

  • Approximate K-SVD

Example

License

Licensed under the Apache License 2.0.

References

About

A ksvd implementation written in python.

License:Apache License 2.0


Languages

Language:Python 97.1%Language:Makefile 2.9%