Skip to content

Add Tutorial for MSTUMP/MSTUMPED #103

@seanlaw

Description

@seanlaw

The original MSTUMP paper is here.

The data and code for mSTAMP can be found here.

For the 3-dimensional toy dataset shown in Figure 2, the data can be retrieved by:

#!/usr/bin/env python

from scipy.io import loadmat
import ssl
import io
import urllib
import pandas as pd

context = ssl.SSLContext()

url = "https://github.com/mcyeh/mstamp/blob/master/Python/toy_data.mat?raw=true"

raw_bytes = urllib.request.urlopen(url, context=context).read()
data = io.BytesIO(raw_bytes)
mat = loadmat(data)

mdata = mat['data']
mdtype = mdata.dtype

df = pd.DataFrame(mdata, dtype=mdtype, columns=['dim1', 'dim2', 'dim3'])
print(df)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions