A Python package for Generative Topographic Mapping (GTM)
Project description
Description
A Python package for Generative Topographic Mapping (GTM) Provide original version of GTM by Bishop et al. (1998) and GTM through time by Bishop et al. (1997).
Installation
$ pip install gtmx
basic GTM
from gtmx import GTMBase
from sklearn.datasets import load_iris
iris = load_iris()
x = iris.data
y = iris.target
gtm = GTMBase(l=1)
gtm.fit(x, epoch=30)
gtm.plot_llh()
gtm.plot('mean', label=y)
gtm.plot('mode', label=y)
GTM through time
from gtmx import GTMTimeSeries
import numpy as np
x = np.ndarray(["Your time series data in shape (n_obs, sequence, dimension)"])
gtm = GTMTimeSeries()
gtm.fit(x)
gtm.plot_llh()
gtm.plot('mean')
gtm.plot('mode')
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
GTMX-0.0.4.tar.gz
(11.1 kB
view details)
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
GTMX-0.0.4-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file GTMX-0.0.4.tar.gz.
File metadata
- Download URL: GTMX-0.0.4.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b1299f53610004a888a630c05a203bef7ca664da4bd2cd7748ee622e7214a6
|
|
| MD5 |
5a1ab932e700f8567346464df4fbca99
|
|
| BLAKE2b-256 |
2feca46d75209dbaff788862f991418c1259c6a82538d5c86b513430cea34c42
|
File details
Details for the file GTMX-0.0.4-py3-none-any.whl.
File metadata
- Download URL: GTMX-0.0.4-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36508f56e5407c75c2d2ca1501ee49571fdb5c25eb788c4b998b1bcd435af791
|
|
| MD5 |
d272fade37a18b7c6c3d8ccc28954ace
|
|
| BLAKE2b-256 |
86d53d217f0badf3f0c0aff1f866f3cf31017c2867018008bad5d479e4a5cdf3
|