Skip to main content

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)

Source distribution for GTMX 0.0.4
File Size Uploaded
GTMX-0.0.4.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for GTMX 0.0.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page