GTMX
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')
Metadata
Release files for GTMX 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| GTMX-0.0.4.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GTMX-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.8 kB
Release files / GTMX-0.0.4.tar.gz
| Download URL | GTMX-0.0.4.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98b1299f53610004a888a630c05a203bef7ca664da4bd2cd7748ee622e7214a6
|
|
BLAKE2b-256 checksum How to use checksums |
2feca46d75209dbaff788862f991418c1259c6a82538d5c86b513430cea34c42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / GTMX-0.0.4-py3-none-any.whl
| Download URL | GTMX-0.0.4-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36508f56e5407c75c2d2ca1501ee49571fdb5c25eb788c4b998b1bcd435af791
|
|
BLAKE2b-256 checksum How to use checksums |
86d53d217f0badf3f0c0aff1f866f3cf31017c2867018008bad5d479e4a5cdf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|