Kernel method for out-of-sample extension
Project description
kerneloose
Python implementation of the kernel method for out-of-sample extension (OOSE) of dimensionality reduction techniques.
Based on "Parametric nonlinear dimensionality reduction using kernel t-SNE" by Gisbrecht, Schulz, and Hammer.
The kernel method is particularly useful for projection techniques that are computationally expensive and/or have non-convex objective functions, such as t-SNE.
Installation
pip install kerneloose
Usage example
The syntax follows scikit learn conventions.
Assume hd_data
is a numpy array containing high-dimensional data, and an array ld_data
of equal length but lower dimension was obtained by some projection technique.
An OOSE of that projection can be obtained by:
from kerneloose import KernelMap
kernel_oose = KernelMap()
kernel_oose.fit(hd_data, ld_data)
The mapping can be applied to new_data
(with same dimensionality as ld_data
) simply by:
kernel_oose.transform(new_data)
Parameters of the calculated OOSE mapping can be saved and loaded for later use:
kernel_oose.save('some/file/name')
resume_later = KernelMap()
resume_later.load('some/file/name')
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
Built Distribution
Hashes for kerneloose-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2533cc28c7691b2202f444d118783ba36451ba061a574085f5e71c4597c07e18 |
|
MD5 | 9a39b888b517d2f7f5a32f1fa05df958 |
|
BLAKE2b-256 | 853f7e28de87bf8a2b85d8447b7c0e76f469edeb3c0498dab105ceee46b63ded |