Skip to content

Instantly share code, notes, and snippets.

@AlexanderFabisch
Last active September 1, 2020 09:45
Show Gist options
  • Save AlexanderFabisch/5412610 to your computer and use it in GitHub Desktop.
Save AlexanderFabisch/5412610 to your computer and use it in GitHub Desktop.
Load SARCOS data in Python
# Get the dataset here: http://www.gaussianprocess.org/gpml/data/
import scipy.io
# Load training set
train = scipy.io.loadmat("sarcos_inv.mat")
# Inputs (7 joint positions, 7 joint velocities, 7 joint accelerations)
Xtrain = train["sarcos_inv"][:, :21]
# Outputs (7 joint torques)
Ytrain = train["sarcos_inv"][:, 21:]
# Load test set
test = scipy.io.loadmat("sarcos_inv_test.mat")
Xtest = test["sarcos_inv_test"][:, :21]
Ytest = test["sarcos_inv_test"][:, 21:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment