Last active
September 1, 2020 09:45
-
-
Save AlexanderFabisch/5412610 to your computer and use it in GitHub Desktop.
Load SARCOS data in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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