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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kerneloose-0.0.2.tar.gz.
File metadata
- Download URL: kerneloose-0.0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b92fe775bac09ade48e0f3651df453fe6cf6cce0c4d5ea01f21d59bcf0eb39f8
|
|
| MD5 |
85e356f99ffc8e3dda651cc98171799f
|
|
| BLAKE2b-256 |
0ca1c0d167de14fab23fb15e910c373e16e0911545ccdfd5ed1800655bc5db2a
|
File details
Details for the file kerneloose-0.0.2-py3-none-any.whl.
File metadata
- Download URL: kerneloose-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e95635022e50debb40bc379babab40c94b29ee275e5e3e537ee92a36c9a21cf2
|
|
| MD5 |
04fe9a4874ef94bd3547bb216c989d0f
|
|
| BLAKE2b-256 |
84764351e76fe7ecec155214dbfaada0fc2ce8fcb4b4b50b9e9e29217e8670cf
|