
import pyLasaDataset as lasa

# DataSet object has all the LASA handwriting data files 
# as attributes, eg:
angle_data = lasa.DataSet.Angle
sine_data = lasa.DataSet.Sine


# Each Data object has attributes dt and demos (For documentation, 
# refer original dataset repo: 
# https://bitbucket.org/khansari/lasahandwritingdataset/src/master/Readme.txt)
dt = angle_data.dt
demos = angle_data.demos # list of 7 Demo objects, each corresponding to a 
                         # repetition of the pattern


# Each Demo object in demos list will have attributes pos, t, vel, acc 
# corresponding to the original .mat format described in 
# https://bitbucket.org/khansari/lasahandwritingdataset/src/master/Readme.txt
demo_0 = demos[0]
pos = demo_0.pos # np.ndarray, shape: (2,2000)
vel = demo_0.vel # np.ndarray, shape: (2,2000) 
acc = demo_0.acc # np.ndarray, shape: (2,2000)
t = demo_0.t # np.ndarray, shape: (1,2000)


# To visualise the model use the plot_model utility
lasa.utilities.plot_model(lasa.DataSet.BendedLine) # give any of the available 
                                                   # pattern data as argument

4476f44b9366408f7b0f31f1cba732cf2f187cb5
<mask token>

<mask token>
lasa.utilities.plot_model(lasa.DataSet.BendedLine)

<mask token>
angle_data = lasa.DataSet.Angle
sine_data = lasa.DataSet.Sine
dt = angle_data.dt
demos = angle_data.demos
demo_0 = demos[0]
pos = demo_0.pos
vel = demo_0.vel
acc = demo_0.acc
t = demo_0.t
lasa.utilities.plot_model(lasa.DataSet.BendedLine)

import pyLasaDataset as lasa
angle_data = lasa.DataSet.Angle
sine_data = lasa.DataSet.Sine
dt = angle_data.dt
demos = angle_data.demos
demo_0 = demos[0]
pos = demo_0.pos
vel = demo_0.vel
acc = demo_0.acc
t = demo_0.t
lasa.utilities.plot_model(lasa.DataSet.BendedLine)


import pyLasaDataset as lasa

# DataSet object has all the LASA handwriting data files 
# as attributes, eg:
angle_data = lasa.DataSet.Angle
sine_data = lasa.DataSet.Sine


# Each Data object has attributes dt and demos (For documentation, 
# refer original dataset repo: 
# https://bitbucket.org/khansari/lasahandwritingdataset/src/master/Readme.txt)
dt = angle_data.dt
demos = angle_data.demos # list of 7 Demo objects, each corresponding to a 
                         # repetition of the pattern


# Each Demo object in demos list will have attributes pos, t, vel, acc 
# corresponding to the original .mat format described in 
# https://bitbucket.org/khansari/lasahandwritingdataset/src/master/Readme.txt
demo_0 = demos[0]
pos = demo_0.pos # np.ndarray, shape: (2,2000)
vel = demo_0.vel # np.ndarray, shape: (2,2000) 
acc = demo_0.acc # np.ndarray, shape: (2,2000)
t = demo_0.t # np.ndarray, shape: (1,2000)


# To visualise the model use the plot_model utility
lasa.utilities.plot_model(lasa.DataSet.BendedLine) # give any of the available 
                                                   # pattern data as argument
