Skip to main content

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.3.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

GTMX-0.0.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file GTMX-0.0.3.tar.gz.

File metadata

  • Download URL: GTMX-0.0.3.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for GTMX-0.0.3.tar.gz
Algorithm Hash digest
SHA256 630a00de5ff6e04bbe24874c747a38f8ac1360813d644c607f18fa95b5bba488
MD5 a6618c1f53f7c3d3d3066848c5d19737
BLAKE2b-256 1376e66366cadf74f2e9a22c3833563dd11525cdb90811c7c8852ad1faeb0ef6

See more details on using hashes here.

File details

Details for the file GTMX-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: GTMX-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for GTMX-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b37a97b71ddd0eb5afc5d156f6078524be1a37c8195f77162b8f82c1d391882b
MD5 c51ad4ce3955057160263f668d1f520a
BLAKE2b-256 405e5d31f036b2b2b2e08a12e88a40816880dde8bff5e6f9fd2ec7ac126082f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page