diff --git a/GPy/examples/dimensionality_reduction.py b/GPy/examples/dimensionality_reduction.py index 276695e6..5febdbaf 100644 --- a/GPy/examples/dimensionality_reduction.py +++ b/GPy/examples/dimensionality_reduction.py @@ -352,7 +352,7 @@ def brendan_faces(): return m def stick_play(range=None, frame_rate=15): - data = GPy.util.datasets.stick() + data = GPy.util.datasets.osu_run1() # optimize if range == None: Y = data['Y'].copy() @@ -364,7 +364,7 @@ def stick_play(range=None, frame_rate=15): return Y def stick(): - data = GPy.util.datasets.stick() + data = GPy.util.datasets.osu_run1() # optimize m = GPy.models.GPLVM(data['Y'], 2) m.optimize(messages=1, max_f_eval=10000) @@ -379,7 +379,7 @@ def stick(): return m def stick_bgplvm(model=None): - data = GPy.util.datasets.stick() + data = GPy.util.datasets.osu_run1() Q = 6 kernel = GPy.kern.rbf(Q, ARD=True) + GPy.kern.bias(Q, np.exp(-2)) + GPy.kern.white(Q, np.exp(-2)) m = BayesianGPLVM(data['Y'], Q, init="PCA", num_inducing=20, kernel=kernel) diff --git a/GPy/kern/parts/mlp.py b/GPy/kern/parts/mlp.py index 2b8d6799..c3b41911 100644 --- a/GPy/kern/parts/mlp.py +++ b/GPy/kern/parts/mlp.py @@ -85,8 +85,8 @@ class MLP(Kernpart): vec = np.diag(self._K_inner_prod) target[1] += ((self._K_inner_prod/self._K_denom -.5*self._K_numer/denom3 - *(np.outer((self.weight_std*vec+self.bias_variance+1.), self.weight_std*vec) - +np.outer(self.weight_std*vec,(self.weight_std*vec+self.bias_variance+1.))))*base_cov_grad).sum() + *(np.outer((self.weight_variance*vec+self.bias_variance+1.), vec) + +np.outer(vec,(self.weight_variance*vec+self.bias_variance+1.))))*base_cov_grad).sum() target[2] += ((1./self._K_denom -.5*self._K_numer/denom3 *((vec[None, :]+vec[:, None])*self.weight_variance diff --git a/GPy/testing/unit_tests.py b/GPy/testing/unit_tests.py index 092f9487..ff6abf33 100644 --- a/GPy/testing/unit_tests.py +++ b/GPy/testing/unit_tests.py @@ -64,6 +64,11 @@ class GradientTests(unittest.TestCase): mlp = GPy.kern.mlp(1) self.check_model_with_white(mlp, model_type='GPRegression', dimension=1) + def test_GPRegression_poly_1d(self): + ''' Testing the GP regression with polynomial kernel with white kernel on 1d data ''' + mlp = GPy.kern.poly(1, degree=5) + self.check_model_with_white(mlp, model_type='GPRegression', dimension=1) + def test_GPRegression_matern52_1D(self): ''' Testing the GP regression with matern52 kernel on 1d data ''' matern52 = GPy.kern.Matern52(1) diff --git a/GPy/util/datasets.py b/GPy/util/datasets.py index 9c46b2f1..fa287939 100644 --- a/GPy/util/datasets.py +++ b/GPy/util/datasets.py @@ -5,13 +5,113 @@ import GPy import scipy.sparse import scipy.io import cPickle as pickle -import urllib2 as url +import urllib as url +import zipfile +import tarfile +import gzip +import zlib +import sys, urllib +def reporthook(a,b,c): + # ',' at the end of the line is important! + print "% 3.1f%% of %d bytes\r" % (min(100, float(a * b) / c * 100), c), + #you can also use sys.stdout.write + #sys.stdout.write("\r% 3.1f%% of %d bytes" + # % (min(100, float(a * b) / c * 100), c) + sys.stdout.flush() + +# Global variables data_path = os.path.join(os.path.dirname(__file__), 'datasets') default_seed = 10000 -neil_url = 'http://staffwww.dcs.shef.ac.uk/people/N.Lawrence/' +neil_url = 'http://staffwww.dcs.shef.ac.uk/people/N.Lawrence/dataset_mirror/' +cmu_url = 'http://mocap.cs.cmu.edu/subjects/' +# Note: there may be a better way of storing data resources. One of the pythonistas will need to take a look. +data_resources = {'ankur_pose_data' : {'urls' : [neil_url + 'ankur_pose_data/'], + 'files' : [['ankurDataPoseSilhouette.mat']], + 'license' : None, + 'citation' : """3D Human Pose from Silhouettes by Relevance Vector Regression (In CVPR'04). A. Agarwal and B. Triggs.""", + 'details' : """Artificially generated data of silhouettes given poses. Note that the data does not display a left/right ambiguity because across the entire data set one of the arms sticks out more the the other, disambiguating the pose as to which way the individual is facing."""}, + + + 'brendan_faces' : {'urls' : ['http://www.cs.nyu.edu/~roweis/data/'], + 'files': [['frey_rawface.mat']], + 'citation' : 'Frey, B. J., Colmenarez, A and Huang, T. S. Mixtures of Local Linear Subspaces for Face Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition 1998, 32-37, June 1998. Computer Society Press, Los Alamitos, CA.', + 'details' : """A video of Brendan Frey's face popularized as a benchmark for visualization by the Locally Linear Embedding.""", + 'license': None, + 'size' : 1100584}, + 'cmu_mocap_full' : {'urls' : ['http://mocap.cs.cmu.edu'], + 'files' : [['allasfamc.zip']], + 'citation' : """Please include this in your acknowledgements: The data used in this project was obtained from mocap.cs.cmu.edu. +The database was created with funding from NSF EIA-0196217.""", + 'details' : """CMU Motion Capture data base. Captured by a Vicon motion capture system consisting of 12 infrared MX-40 cameras, each of which is capable of recording at 120 Hz with images of 4 megapixel resolution. Motions are captured in a working volume of approximately 3m x 8m. The capture subject wears 41 markers and a stylish black garment.""", + 'license' : """From http://mocap.cs.cmu.edu. This data is free for use in research projects. You may include this data in commercially-sold products, but you may not resell this data directly, even in converted form. If you publish results obtained using this data, we would appreciate it if you would send the citation to your published paper to jkh+mocap@cs.cmu.edu, and also would add this text to your acknowledgments section: The data used in this project was obtained from mocap.cs.cmu.edu. The database was created with funding from NSF EIA-0196217.""", + 'size' : None}, + 'creep_rupture' : {'urls' : ['http://www.msm.cam.ac.uk/map/data/tar/'], + 'files' : [['creeprupt.tar']], + 'citation' : 'Materials Algorithms Project Data Library: MAP_DATA_CREEP_RUPTURE. F. Brun and T. Yoshida.', + 'details' : """Provides 2066 creep rupture test results of steels (mainly of two kinds of steels: 2.25Cr and 9-12 wt% Cr ferritic steels). See http://www.msm.cam.ac.uk/map/data/materials/creeprupt-b.html.""", + 'license' : None, + 'size' : 602797}, + 'della_gatta' : {'urls' : [neil_url + 'della_gatta/'], + 'files': [['DellaGattadata.mat']], + 'citation' : 'Direct targets of the TRP63 transcription factor revealed by a combination of gene expression profiling and reverse engineering. Giusy Della Gatta, Mukesh Bansal, Alberto Ambesi-Impiombato, Dario Antonini, Caterina Missero, and Diego di Bernardo, Genome Research 2008', + 'details': "The full gene expression data set from della Gatta et al (http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2413161/) processed by RMA.", + 'license':None, + 'size':3729650}, + 'three_phase_oil_flow': {'urls' : [neil_url + 'three_phase_oil_flow/'], + 'files' : [['DataTrnLbls.txt', 'DataTrn.txt', 'DataTst.txt', 'DataTstLbls.txt', 'DataVdn.txt', 'DataVdnLbls.txt']], + 'citation' : 'Bishop, C. M. and G. D. James (1993). Analysis of multiphase flows using dual-energy gamma densitometry and neural networks. Nuclear Instruments and Methods in Physics Research A327, 580-593', + 'details' : """The three phase oil data used initially for demonstrating the Generative Topographic mapping.""", + 'license' : None, + 'size' : 712796}, + 'rogers_girolami_data' : {'urls' : ['https://www.dropbox.com/sh/7p6tu1t29idgliq/_XqlH_3nt9/'], + 'files' : [['firstcoursemldata.tar.gz']], + 'suffices' : [['?dl=1']], + 'citation' : 'A First Course in Machine Learning. Simon Rogers and Mark Girolami: Chapman & Hall/CRC, ISBN-13: 978-1439824146', + 'details' : """Data from the textbook 'A First Course in Machine Learning'. Available from http://www.dcs.gla.ac.uk/~srogers/firstcourseml/.""", + 'license' : None, + 'size' : 21949154}, + 'olympic_marathon_men' : {'urls' : [neil_url + 'olympic_marathon_men/'], + 'files' : [['olympicMarathonTimes.csv']], + 'citation' : None, + 'details' : """Olympic mens' marathon gold medal winning times from 1896 to 2012. Time given in pace (minutes per kilometer). Data is originally downloaded and collated from Wikipedia, we are not responsible for errors in the data""", + 'license': None, + 'size' : 584}, + 'osu_run1' : {'urls': ['http://accad.osu.edu/research/mocap/data/', neil_url + 'stick/'], + 'files': [['sprintTXT.ZIP'],['connections.txt']], + 'details' : "Motion capture data of a stick man running from the Open Motion Data Project at Ohio State University.", + 'citation' : 'The Open Motion Data Project by The Ohio State University Advanced Computing Center for the Arts and Design, http://accad.osu.edu/research/mocap/mocap_data.htm.', + 'license' : 'Data is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License (http://creativecommons.org/licenses/by-nc-sa/3.0/).', + 'size': 338103}, + 'pumadyn-32nm' : {'urls' : ['ftp://ftp.cs.toronto.edu/pub/neuron/delve/data/tarfiles/pumadyn-family/'], + 'files' : [['pumadyn-32nm.tar.gz']], + 'details' : """Pumadyn non linear 32 input data set with moderate noise. See http://www.cs.utoronto.ca/~delve/data/pumadyn/desc.html for details.""", + 'citation' : """Created by Zoubin Ghahramani using the Matlab Robotics Toolbox of Peter Corke. Corke, P. I. (1996). A Robotics Toolbox for MATLAB. IEEE Robotics and Automation Magazine, 3 (1): 24-32.""", + 'license' : """Data is made available by the Delve system at the University of Toronto""", + 'size' : 5861646}, + 'swiss_roll' : {'urls' : ['http://isomap.stanford.edu/'], + 'files' : [['swiss_roll_data.mat']], + 'details' : """Swiss roll data made available by Tenenbaum, de Silva and Langford to demonstrate isomap, available from http://isomap.stanford.edu/datasets.html.""", + 'citation' : 'A Global Geometric Framework for Nonlinear Dimensionality Reduction, J. B. Tenenbaum, V. de Silva and J. C. Langford, Science 290 (5500): 2319-2323, 22 December 2000', + 'license' : None, + 'size' : 800256}, + 'ripley_prnn_data' : {'urls' : ['http://www.stats.ox.ac.uk/pub/PRNN/'], + 'files' : [['Cushings.dat', 'README', 'crabs.dat', 'fglass.dat', 'fglass.grp', 'pima.te', 'pima.tr', 'pima.tr2', 'synth.te', 'synth.tr', 'viruses.dat', 'virus3.dat']], + 'details' : """Data sets from Brian Ripley's Pattern Recognition and Neural Networks""", + 'citation': """Pattern Recognition and Neural Networks by B.D. Ripley (1996) Cambridge University Press ISBN 0 521 46986 7""", + 'license' : None, + 'size' : 93565}, + 'isomap_face_data' : {'urls' : [neil_url + 'isomap_face_data/'], + 'files' : [['face_data.mat']], + 'details' : """Face data made available by Tenenbaum, de Silva and Langford to demonstrate isomap, available from http://isomap.stanford.edu/datasets.html.""", + 'citation' : 'A Global Geometric Framework for Nonlinear Dimensionality Reduction, J. B. Tenenbaum, V. de Silva and J. C. Langford, Science 290 (5500): 2319-2323, 22 December 2000', + 'license' : None, + 'size' : 24229368}, + } + def prompt_user(): + """Ask user for agreeing to data set licenses.""" # raw_input returns the empty string for "enter" yes = set(['yes', 'y']) no = set(['no','n']) @@ -25,45 +125,127 @@ def prompt_user(): sys.stdout.write("Please respond with 'yes', 'y' or 'no', 'n'") return prompt_user() -def download_data(dataset_name=None): - """Helper function which contains the resource locations for each data set in one place""" - - # Note: there may be a better way of doing this. One of the pythonistas will need to take a look. Neil - data_resources = {'oil': {'urls' : [neil_url + 'oil_data/'], - 'files' : [['DataTrnLbls.txt', 'DataTrn.txt']], - 'citation' : 'Bishop, C. M. and G. D. James (1993). Analysis of multiphase flows using dual-energy gamma densitometry and neural networks. Nuclear Instruments and Methods in Physics Research A327, 580-593', - 'details' : """The three phase oil data used initially for demonstrating the Generative Topographic mapping.""", - 'agreement' : None}, - 'brendan_faces' : {'url' : ['http://www.cs.nyu.edu/~roweis/data/'], - 'files': [['frey_rawface.mat']], - 'citation' : 'Frey, B. J., Colmenarez, A and Huang, T. S. Mixtures of Local Linear Subspaces for Face Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition 1998, 32-37, June 1998. Computer Society Press, Los Alamitos, CA.', - 'details' : """A video of Brendan Frey's face popularized as a benchmark for visualization by the Locally Linear Embedding.""", - 'agreement': None} - } - +def data_available(dataset_name=None): + """Check if the data set is available on the local machine already.""" + for file_list in data_resources[dataset_name]['files']: + for file in file_list: + if not os.path.exists(os.path.join(data_path, dataset_name, file)): + return False + return True + +def download_url(url, store_directory, save_name = None, messages = True, suffix=''): + """Download a file from a url and save it to disk.""" + i = url.rfind('/') + file = url[i+1:] + print file + dir_name = os.path.join(data_path, store_directory) + save_name = os.path.join(dir_name, file) + print "Downloading ", url, "->", os.path.join(store_directory, file) + if not os.path.exists(dir_name): + os.makedirs(dir_name) + urllib.urlretrieve(url+suffix, save_name, reporthook) +def authorize_download(dataset_name=None): + """Check with the user that the are happy with terms and conditions for the data set.""" print('Acquiring resource: ' + dataset_name) # TODO, check resource is in dictionary! + print('') dr = data_resources[dataset_name] print('Details of data: ') print(dr['details']) + print('') if dr['citation']: print('Please cite:') print(dr['citation']) - if dr['agreement']: - print('You must also agree to the following:') - print(dr['agreement']) + print('') + if dr['size']: + print('After downloading the data will take up ' + str(dr['size']) + ' bytes of space.') + print('') + print('Data will be stored in ' + os.path.join(data_path, dataset_name) + '.') + print('') + if dr['license']: + print('You must also agree to the following license:') + print(dr['license']) + print('') print('Do you wish to proceed with the download? [yes/no]') - if prompt_user()==False: + return prompt_user() + +def download_data(dataset_name=None): + """Check with the user that the are happy with terms and conditions for the data set, then download it.""" + + dr = data_resources[dataset_name] + if not authorize_download(dataset_name): return False - for url, files in zip(dr['urls'], dr['files']): - for file in files: - download_resource(url + file) + if dr.has_key('suffices'): + for url, files, suffices in zip(dr['urls'], dr['files'], dr['suffices']): + for file, suffix in zip(files, suffices): + download_url(os.path.join(url,file), dataset_name, dataset_name, suffix=suffix) + else: + for url, files in zip(dr['urls'], dr['files']): + for file in files: + download_url(os.path.join(url,file), dataset_name, dataset_name) return True +def data_details_return(data, data_set): + """Update the data component of the data dictionary with details drawn from the data_resources.""" + data.update(data_resources[data_set]) + return data + +def cmu_urls_files(subj_motions, messages = True): + ''' + Find which resources are missing on the local disk for the requested CMU motion capture motions. + ''' + + subjects_num = subj_motions[0] + motions_num = subj_motions[1] + + resource = {'urls' : [], 'files' : []} + # Convert numbers to strings + subjects = [] + motions = [list() for _ in range(len(subjects_num))] + for i in range(len(subjects_num)): + curSubj = str(int(subjects_num[i])) + if int(subjects_num[i]) < 10: + curSubj = '0' + curSubj + subjects.append(curSubj) + for j in range(len(motions_num[i])): + curMot = str(int(motions_num[i][j])) + if int(motions_num[i][j]) < 10: + curMot = '0' + curMot + motions[i].append(curMot) + + all_skels = [] + + assert len(subjects) == len(motions) + + all_motions = [] + + for i in range(len(subjects)): + skel_dir = os.path.join(data_path, 'cmu_mocap') + cur_skel_file = os.path.join(skel_dir, subjects[i] + '.asf') + url_required = False + file_download = [] + if not os.path.exists(cur_skel_file): + # Current skel file doesn't exist. + if not os.path.isdir(skel_dir): + os.mkdir(skel_dir) + # Add skel file to list. + url_required = True + file_download.append(subjects[i] + '.asf') + for j in range(len(motions[i])): + file_name = subjects[i] + '_' + motions[i][j] + '.amc' + cur_motion_file = os.path.join(skel_dir, file_name) + if not os.path.exists(cur_motion_file): + url_required = True + file_download.append(subjects[i] + '_' + motions[i][j] + '.amc') + if url_required: + resource['urls'].append(cmu_url + subjects[i] + '/') + resource['files'].append(file_download) + return resource + # Some general utilities. def sample_class(f): @@ -72,25 +254,17 @@ def sample_class(f): c = np.where(c, 1, -1) return c -def download_resource(resource, save_name = None, save_file = True, messages = True): - if messages: - print "Downloading resource: " , resource, " ... ", - response = url.urlopen(resource) - # TODO: Some error checking... - # ... - html = response.read() - response.close() - if save_file: - # TODO: Check if already exists... - # ... - with open(save_name, "w") as text_file: - text_file.write("%s"%html) - if messages: - print "Done!" - return html +def brendan_faces(data_set='brendan_faces'): + if not data_available(data_set): + download_data(data_set) + mat_data = scipy.io.loadmat(os.path.join(data_path, data_set, 'frey_rawface.mat')) + Y = mat_data['ff'].T + return data_details_return({'Y': Y}, data_set) -def della_gatta_TRP63_gene_expression(gene_number=None): - mat_data = scipy.io.loadmat(os.path.join(data_path, 'DellaGattadata.mat')) +def della_gatta_TRP63_gene_expression(data_set='della_gatta', gene_number=None): + if not data_available(data_set): + download_data(data_set) + mat_data = scipy.io.loadmat(os.path.join(data_path, data_set, 'DellaGattadata.mat')) X = np.double(mat_data['timepoints']) if gene_number == None: Y = mat_data['exprs_tp53_RMA'] @@ -98,45 +272,62 @@ def della_gatta_TRP63_gene_expression(gene_number=None): Y = mat_data['exprs_tp53_RMA'][:, gene_number] if len(Y.shape) == 1: Y = Y[:, None] - return {'X': X, 'Y': Y, 'info': "The full gene expression data set from della Gatta et al (http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2413161/) processed by RMA."} + return data_details_return({'X': X, 'Y': Y, 'gene_number' : gene_number}, data_set) -def simulation_BGPLVM(): - mat_data = scipy.io.loadmat(os.path.join(data_path, 'BGPLVMSimulation.mat')) - Y = np.array(mat_data['Y'], dtype=float) - S = np.array(mat_data['initS'], dtype=float) - mu = np.array(mat_data['initMu'], dtype=float) - return {'Y': Y, 'S': S, - 'mu' : mu, - 'info': "Simulated test dataset generated in MATLAB to compare BGPLVM between python and MATLAB"} # The data sets -def oil(): - #if download_data('oil'): - oil_train_file = os.path.join(data_path, 'oil', 'DataTrn.txt') - oil_trainlbls_file = os.path.join(data_path, 'oil', 'DataTrnLbls.txt') +def oil(data_set='three_phase_oil_flow'): + """The three phase oil data from Bishop and James (1993).""" + if not data_available(data_set): + download_data(data_set) + oil_train_file = os.path.join(data_path, data_set, 'DataTrn.txt') + oil_trainlbls_file = os.path.join(data_path, data_set, 'DataTrnLbls.txt') + oil_test_file = os.path.join(data_path, data_set, 'DataTst.txt') + oil_testlbls_file = os.path.join(data_path, data_set, 'DataTstLbls.txt') + oil_valid_file = os.path.join(data_path, data_set, 'DataVdn.txt') + oil_validlbls_file = os.path.join(data_path, data_set, 'DataVdnLbls.txt') fid = open(oil_train_file) X = np.fromfile(fid, sep='\t').reshape((-1, 12)) fid.close() + fid = open(oil_test_file) + Xtest = np.fromfile(fid, sep='\t').reshape((-1, 12)) + fid.close() + fid = open(oil_valid_file) + Xvalid = np.fromfile(fid, sep='\t').reshape((-1, 12)) + fid.close() fid = open(oil_trainlbls_file) Y = np.fromfile(fid, sep='\t').reshape((-1, 3)) * 2. - 1. fid.close() - return {'X': X, 'Y': Y, 'info': "The oil data from Bishop and James (1993)."} + fid = open(oil_testlbls_file) + Ytest = np.fromfile(fid, sep='\t').reshape((-1, 3)) * 2. - 1. + fid.close() + fid = open(oil_validlbls_file) + Yvalid = np.fromfile(fid, sep='\t').reshape((-1, 3)) * 2. - 1. + fid.close() + return data_details_return({'X': X, 'Y': Y, 'Xtest': Xtest, 'Ytest': Ytest, 'Xtest' : Xtest, 'Xvalid': Xvalid, 'Yvalid': Yvalid}, data_set) #else: # throw an error -def oil_100(seed=default_seed): +def oil_100(seed=default_seed, data_set = 'three_phase_oil_flow'): np.random.seed(seed=seed) data = oil() indices = np.random.permutation(1000) indices = indices[0:100] X = data['X'][indices, :] Y = data['Y'][indices, :] - return {'X': X, 'Y': Y, 'info': "Subsample of the oil data extracting 100 values randomly without replacement."} + return data_details_return({'X': X, 'Y': Y, 'info': "Subsample of the full oil data extracting 100 values randomly without replacement, here seed was " + str(seed)}, data_set) -def pumadyn(seed=default_seed): +def pumadyn(seed=default_seed, data_set='pumadyn-32nm'): + if not data_available(data_set): + download_data(data_set) + path = os.path.join(data_path, data_set) + tar = tarfile.open(os.path.join(path, 'pumadyn-32nm.tar.gz')) + print('Extracting file.') + tar.extractall(path=path) + tar.close() # Data is variance 1, no need to normalize. - data = np.loadtxt(os.path.join(data_path, 'pumadyn-32nm/Dataset.data.gz')) + data = np.loadtxt(os.path.join(data_path, data_set, 'pumadyn-32nm', 'Dataset.data.gz')) indices = np.random.permutation(data.shape[0]) indicesTrain = indices[0:7168] indicesTest = indices[7168:-1] @@ -146,20 +337,13 @@ def pumadyn(seed=default_seed): Y = data[indicesTrain, -1][:, None] Xtest = data[indicesTest, 0:-2] Ytest = data[indicesTest, -1][:, None] - return {'X': X, 'Y': Y, 'Xtest': Xtest, 'Ytest': Ytest, 'info': "The puma robot arm data with 32 inputs. This data is the non linear case with medium noise (pumadyn-32nm). For training 7,168 examples are sampled without replacement."} + return data_details_return({'X': X, 'Y': Y, 'Xtest': Xtest, 'Ytest': Ytest, 'seed': seed}, data_set) - -def brendan_faces(): - mat_data = scipy.io.loadmat(os.path.join(data_path, 'frey_rawface.mat')) - Y = mat_data['ff'].T - return {'Y': Y, 'info': "Face data made available by Brendan Frey"} - - - - -def silhouette(): +def silhouette(data_set='ankur_pose_data'): # Ankur Agarwal and Bill Trigg's silhoutte data. - mat_data = scipy.io.loadmat(os.path.join(data_path, 'mocap', 'ankur', 'ankurDataPoseSilhouette.mat')) + if not data_available(data_set): + download_data(data_set) + mat_data = scipy.io.loadmat(os.path.join(data_path, data_set, 'ankurDataPoseSilhouette.mat')) inMean = np.mean(mat_data['Y']) inScales = np.sqrt(np.var(mat_data['Y'])) X = mat_data['Y'] - inMean @@ -168,22 +352,35 @@ def silhouette(): Xtest = Xtest / inScales Y = mat_data['Z'] Ytest = mat_data['Z_test'] - return {'X': X, 'Y': Y, 'Xtest': Xtest, 'Ytest': Ytest, 'info': "Artificial silhouette simulation data developed from Agarwal and Triggs (2004)."} + return data_details_return({'X': X, 'Y': Y, 'Xtest': Xtest, 'Ytest': Ytest}, data_set) -def stick(): - #if download_data('stick'): - Y, connect = GPy.util.mocap.load_text_data('run1', data_path) +def ripley_synth(data_set='ripley_prnn_data'): + if not data_available(data_set): + download_data(data_set) + train = np.genfromtxt(os.path.join(data_path, data_set, 'synth.tr'), skip_header=1) + X = train[:, 0:2] + y = train[:, 2:3] + test = np.genfromtxt(os.path.join(data_path, data_set, 'synth.te'), skip_header=1) + Xtest = test[:, 0:2] + ytest = test[:, 2:3] + return data_details_return({'X': X, 'y': y, 'Xtest': Xtest, 'ytest': ytest, 'info': 'Synthetic data generated by Ripley for a two class classification problem.'}, data_set) + +def osu_run1(data_set='osu_run1'): + if not data_available(data_set): + download_data(data_set) + zip = zipfile.ZipFile(os.path.join(data_path, data_set, 'sprintTXT.ZIP'), 'r') + path = os.path.join(data_path, data_set) + for name in zip.namelist(): + zip.extract(name, path) + Y, connect = GPy.util.mocap.load_text_data('Aug210107', path) Y = Y[0:-1:4, :] - lbls = 'connect' - return {'Y': Y, 'connect' : connect, 'info': "Stick man data from Ohio."} - # else: - # throw an error. + return data_details_return({'Y': Y, 'connect' : connect}, data_set) -def swiss_roll_generated(N=1000, sigma=0.0): +def swiss_roll_generated(num_samples=1000, sigma=0.0): with open(os.path.join(data_path, 'swiss_roll.pickle')) as f: data = pickle.load(f) Na = data['Y'].shape[0] - perm = np.random.permutation(np.r_[:Na])[:N] + perm = np.random.permutation(np.r_[:Na])[:num_samples] Y = data['Y'][perm, :] t = data['t'][perm] c = data['colors'][perm, :] @@ -194,17 +391,34 @@ def swiss_roll_generated(N=1000, sigma=0.0): return {'Y':Y, 't':t, 'colors':c} def swiss_roll_1000(): - mat_data = scipy.io.loadmat(os.path.join(data_path, 'swiss_roll_data')) - Y = mat_data['X_data'][:, 0:1000].transpose() - return {'Y': Y, 'info': "Subsample of the swiss roll data extracting only the first 1000 values."} + return swiss_roll(num_samples=1000) -def swiss_roll(N=3000): - mat_data = scipy.io.loadmat(os.path.join(data_path, 'swiss_roll_data.mat')) - Y = mat_data['X_data'][:, 0:N].transpose() - return {'Y': Y, 'X': mat_data['X_data'], 'info': "The first 3,000 points from the swiss roll data of Tennenbaum, de Silva and Langford (2001)."} +def swiss_roll(num_samples=3000, data_set='swiss_roll'): + if not data_available(data_set): + download_data(data_set) + mat_data = scipy.io.loadmat(os.path.join(data_path, data_set, 'swiss_roll_data.mat')) + Y = mat_data['X_data'][:, 0:num_samples].transpose() + return data_details_return({'Y': Y, 'X': mat_data['X_data'], 'info': "The first " + str(num_samples) + " points from the swiss roll data of Tennenbaum, de Silva and Langford (2001)."}, data_set) + +def isomap_faces(num_samples=698, data_set='isomap_face_data'): + if not data_available(data_set): + download_data(data_set) + mat_data = scipy.io.loadmat(os.path.join(data_path, data_set, 'face_data.mat')) + Y = mat_data['images'][:, 0:num_samples].transpose() + return data_details_return({'Y': Y, 'poses' : mat_data['poses'], 'lights': mat_data['lights'], 'info': "The first " + str(num_samples) + " points from the face data of Tennenbaum, de Silva and Langford (2001)."}, data_set) + +def simulation_BGPLVM(): + mat_data = scipy.io.loadmat(os.path.join(data_path, 'BGPLVMSimulation.mat')) + Y = np.array(mat_data['Y'], dtype=float) + S = np.array(mat_data['initS'], dtype=float) + mu = np.array(mat_data['initMu'], dtype=float) + return data_details_return({'S': S, 'Y': Y, 'mu': mu}, data_set) + return {'Y': Y, 'S': S, + 'mu' : mu, + 'info': "Simulated test dataset generated in MATLAB to compare BGPLVM between python and MATLAB"} def toy_rbf_1d(seed=default_seed, num_samples=500): - """Samples 500 values of a function from an RBF covariance with very small noise for inputs uniformly distributed between -1 and 1. + """Samples values of a function from an RBF covariance with very small noise for inputs uniformly distributed between -1 and 1. :param seed: seed to use for random sampling. :type seed: int :param num_samples: number of samples to sample in the function (default 500). @@ -219,7 +433,7 @@ def toy_rbf_1d(seed=default_seed, num_samples=500): kernel = rbf + white K = kernel.K(X) y = np.reshape(np.random.multivariate_normal(np.zeros(num_samples), K), (num_samples, 1)) - return {'X':X, 'Y':y, 'info': "Samples 500 values of a function from an RBF covariance with very small noise for inputs uniformly distributed between -1 and 1."} + return {'X':X, 'Y':y, 'info': "Sampled " + str(num_samples) + " values of a function from an RBF covariance with very small noise for inputs uniformly distributed between -1 and 1."} def toy_rbf_1d_50(seed=default_seed): np.random.seed(seed=seed) @@ -229,7 +443,7 @@ def toy_rbf_1d_50(seed=default_seed): indices.sort(axis=0) X = data['X'][indices, :] Y = data['Y'][indices, :] - return {'X': X, 'Y': Y, 'info': "Subsamples the toy_rbf_sample with 50 values randomly taken from the original sample."} + return {'X': X, 'Y': Y, 'info': "Subsamples the toy_rbf_sample with 50 values randomly taken from the original sample.", 'seed' : seed} def toy_linear_1d_classification(seed=default_seed): @@ -237,13 +451,31 @@ def toy_linear_1d_classification(seed=default_seed): x1 = np.random.normal(-3, 5, 20) x2 = np.random.normal(3, 5, 20) X = (np.r_[x1, x2])[:, None] - return {'X': X, 'Y': sample_class(2.*X), 'F': 2.*X} + return {'X': X, 'Y': sample_class(2.*X), 'F': 2.*X, 'seed' : seed} + +def olympic_100m_men(data_set='rogers_girolami_data'): + if not data_available(data_set): + download_data(data_set) + path = os.path.join(data_path, data_set) + tar_file = os.path.join(path, 'firstcoursemldata.tar.gz') + tar = tarfile.open(tar_file) + print('Extracting file.') + tar.extractall(path=path) + tar.close() + olympic_data = scipy.io.loadmat(os.path.join(data_path, data_set, 'data', 'olympics.mat'))['male100'] -def rogers_girolami_olympics(): - olympic_data = scipy.io.loadmat(os.path.join(data_path, 'olympics.mat'))['male100'] X = olympic_data[:, 0][:, None] Y = olympic_data[:, 1][:, None] - return {'X': X, 'Y': Y, 'info': "Olympic sprint times for 100 m men from 1896 until 2008. Example is from Rogers and Girolami's First Course in Machine Learning."} + return data_details_return({'X': X, 'Y': Y, 'info': "Olympic sprint times for 100 m men from 1896 until 2008. Example is from Rogers and Girolami's First Course in Machine Learning."}, data_set) + +def olympic_marathon_men(data_set='olympic_marathon_men'): + if not data_available(data_set): + download_data(data_set) + olympics = np.genfromtxt(os.path.join(data_path, data_set, 'olympicMarathonTimes.csv'), delimiter=',') + X = olympics[:, 0:1] + Y = olympics[:, 1:2] + return data_details_return({'X': X, 'Y': Y}, data_set) + # def movielens_small(partNo=1,seed=default_seed): # np.random.seed(seed=seed) @@ -277,8 +509,6 @@ def rogers_girolami_olympics(): # return {'Y':Y, 'lbls':lbls, 'Ytest':Ytest, 'lblstest':lblstest} - - def crescent_data(num_data=200, seed=default_seed): """Data set formed from a mixture of four Gaussians. In each class two of the Gaussians are elongated at right angles to each other and offset to form an approximation to the crescent data that is popular in semi-supervised learning as a toy problem. :param num_data_part: number of data to be sampled (default is 200). @@ -307,7 +537,6 @@ def crescent_data(num_data=200, seed=default_seed): for i in range(0, 4): num_data_part.append(round(((i + 1) * num_data) / 4.)) num_data_part[i] -= num_data_total - # print num_data_part[i] part = np.random.normal(size=(num_data_part[i], 2)) part = np.dot(np.dot(part, scales[i]), R) + means[i] Xparts.append(part) @@ -318,13 +547,22 @@ def crescent_data(num_data=200, seed=default_seed): Y = np.vstack((np.ones((num_data_part[0] + num_data_part[1], 1)), -np.ones((num_data_part[2] + num_data_part[3], 1)))) return {'X':X, 'Y':Y, 'info': "Two separate classes of data formed approximately in the shape of two crescents."} -def creep_data(): - all_data = np.loadtxt(os.path.join(data_path, 'creep', 'taka')) +def creep_data(data_set='creep_rupture'): + """Brun and Yoshida's metal creep rupture data.""" + if not data_available(data_set): + download_data(data_set) + path = os.path.join(data_path, data_set) + tar_file = os.path.join(path, 'creeprupt.tar') + tar = tarfile.open(tar_file) + print('Extracting file.') + tar.extractall(path=path) + tar.close() + all_data = np.loadtxt(os.path.join(data_path, data_set, 'taka')) y = all_data[:, 1:2].copy() features = [0] features.extend(range(2, 31)) X = all_data[:, features].copy() - return {'X': X, 'y' : y} + return data_details_return({'X': X, 'y': y}, data_set) def cmu_mocap_49_balance(): """Load CMU subject 49's one legged balancing motion that was used by Alvarez, Luengo and Lawrence at AISTATS 2009.""" @@ -346,14 +584,19 @@ def cmu_mocap_35_walk_jog(): data['info'] = "Walk and jog data from CMU data base subject 35. As used in Tayor, Roweis and Hinton at NIPS 2007, but without their pre-processing (i.e. as used by Lawrence at AISTATS 2007). It consists of " + data['info'] return data -def cmu_mocap(subject, train_motions, test_motions=[], sample_every=4): +def cmu_mocap(subject, train_motions, test_motions=[], sample_every=4, data_set='cmu_mocap'): """Load a given subject's training and test motions from the CMU motion capture data.""" - # Load in subject skeleton. - subject_dir = os.path.join(data_path, 'mocap', 'cmu', subject) + subject_dir = os.path.join(data_path, data_set) # Make sure the data is downloaded. - mocap.fetch_cmu(([subject], [train_motions]), skel_store_dir=subject_dir,motion_store_dir=subject_dir) + all_motions = train_motions + test_motions + resource = cmu_urls_files(([subject], [all_motions])) + data_resources[data_set] = data_resources['cmu_mocap_full'] + data_resources[data_set]['files'] = resource['files'] + data_resources[data_set]['urls'] = resource['urls'] + if resource['urls']: + download_data(data_set) skel = GPy.util.mocap.acclaim_skeleton(os.path.join(subject_dir, subject + '.asf')) @@ -418,4 +661,4 @@ def cmu_mocap(subject, train_motions, test_motions=[], sample_every=4): info += '.' if sample_every != 1: info += ' Data is sub-sampled to every ' + str(sample_every) + ' frames.' - return {'Y': Y, 'lbls' : lbls, 'Ytest': Ytest, 'lblstest' : lblstest, 'info': info, 'skel': skel} + return data_details_return({'Y': Y, 'lbls' : lbls, 'Ytest': Ytest, 'lblstest' : lblstest, 'info': info, 'skel': skel}, data_set) diff --git a/GPy/util/datasets/crabs.dat b/GPy/util/datasets/crabs.dat deleted file mode 100644 index 74145ab0..00000000 --- a/GPy/util/datasets/crabs.dat +++ /dev/null @@ -1,201 +0,0 @@ -sp sex index FL RW CL CW BD -B M 1 8.1 6.7 16.1 19.0 7.0 -B M 2 8.8 7.7 18.1 20.8 7.4 -B M 3 9.2 7.8 19.0 22.4 7.7 -B M 4 9.6 7.9 20.1 23.1 8.2 -B M 5 9.8 8.0 20.3 23.0 8.2 -B M 6 10.8 9.0 23.0 26.5 9.8 -B M 7 11.1 9.9 23.8 27.1 9.8 -B M 8 11.6 9.1 24.5 28.4 10.4 -B M 9 11.8 9.6 24.2 27.8 9.7 -B M 10 11.8 10.5 25.2 29.3 10.3 -B M 11 12.2 10.8 27.3 31.6 10.9 -B M 12 12.3 11.0 26.8 31.5 11.4 -B M 13 12.6 10.0 27.7 31.7 11.4 -B M 14 12.8 10.2 27.2 31.8 10.9 -B M 15 12.8 10.9 27.4 31.5 11.0 -B M 16 12.9 11.0 26.8 30.9 11.4 -B M 17 13.1 10.6 28.2 32.3 11.0 -B M 18 13.1 10.9 28.3 32.4 11.2 -B M 19 13.3 11.1 27.8 32.3 11.3 -B M 20 13.9 11.1 29.2 33.3 12.1 -B M 21 14.3 11.6 31.3 35.5 12.7 -B M 22 14.6 11.3 31.9 36.4 13.7 -B M 23 15.0 10.9 31.4 36.4 13.2 -B M 24 15.0 11.5 32.4 37.0 13.4 -B M 25 15.0 11.9 32.5 37.2 13.6 -B M 26 15.2 12.1 32.3 36.7 13.6 -B M 27 15.4 11.8 33.0 37.5 13.6 -B M 28 15.7 12.6 35.8 40.3 14.5 -B M 29 15.9 12.7 34.0 38.9 14.2 -B M 30 16.1 11.6 33.8 39.0 14.4 -B M 31 16.1 12.8 34.9 40.7 15.7 -B M 32 16.2 13.3 36.0 41.7 15.4 -B M 33 16.3 12.7 35.6 40.9 14.9 -B M 34 16.4 13.0 35.7 41.8 15.2 -B M 35 16.6 13.5 38.1 43.4 14.9 -B M 36 16.8 12.8 36.2 41.8 14.9 -B M 37 16.9 13.2 37.3 42.7 15.6 -B M 38 17.1 12.6 36.4 42.0 15.1 -B M 39 17.1 12.7 36.7 41.9 15.6 -B M 40 17.2 13.5 37.6 43.9 16.1 -B M 41 17.7 13.6 38.7 44.5 16.0 -B M 42 17.9 14.1 39.7 44.6 16.8 -B M 43 18.0 13.7 39.2 44.4 16.2 -B M 44 18.8 15.8 42.1 49.0 17.8 -B M 45 19.3 13.5 41.6 47.4 17.8 -B M 46 19.3 13.8 40.9 46.5 16.8 -B M 47 19.7 15.3 41.9 48.5 17.8 -B M 48 19.8 14.2 43.2 49.7 18.6 -B M 49 19.8 14.3 42.4 48.9 18.3 -B M 50 21.3 15.7 47.1 54.6 20.0 -B F 1 7.2 6.5 14.7 17.1 6.1 -B F 2 9.0 8.5 19.3 22.7 7.7 -B F 3 9.1 8.1 18.5 21.6 7.7 -B F 4 9.1 8.2 19.2 22.2 7.7 -B F 5 9.5 8.2 19.6 22.4 7.8 -B F 6 9.8 8.9 20.4 23.9 8.8 -B F 7 10.1 9.3 20.9 24.4 8.4 -B F 8 10.3 9.5 21.3 24.7 8.9 -B F 9 10.4 9.7 21.7 25.4 8.3 -B F 10 10.8 9.5 22.5 26.3 9.1 -B F 11 11.0 9.8 22.5 25.7 8.2 -B F 12 11.2 10.0 22.8 26.9 9.4 -B F 13 11.5 11.0 24.7 29.2 10.1 -B F 14 11.6 11.0 24.6 28.5 10.4 -B F 15 11.6 11.4 23.7 27.7 10.0 -B F 16 11.7 10.6 24.9 28.5 10.4 -B F 17 11.9 11.4 26.0 30.1 10.9 -B F 18 12.0 10.7 24.6 28.9 10.5 -B F 19 12.0 11.1 25.4 29.2 11.0 -B F 20 12.6 12.2 26.1 31.6 11.2 -B F 21 12.8 11.7 27.1 31.2 11.9 -B F 22 12.8 12.2 26.7 31.1 11.1 -B F 23 12.8 12.2 27.9 31.9 11.5 -B F 24 13.0 11.4 27.3 31.8 11.3 -B F 25 13.1 11.5 27.6 32.6 11.1 -B F 26 13.2 12.2 27.9 32.1 11.5 -B F 27 13.4 11.8 28.4 32.7 11.7 -B F 28 13.7 12.5 28.6 33.8 11.9 -B F 29 13.9 13.0 30.0 34.9 13.1 -B F 30 14.7 12.5 30.1 34.7 12.5 -B F 31 14.9 13.2 30.1 35.6 12.0 -B F 32 15.0 13.8 31.7 36.9 14.0 -B F 33 15.0 14.2 32.8 37.4 14.0 -B F 34 15.1 13.3 31.8 36.3 13.5 -B F 35 15.1 13.5 31.9 37.0 13.8 -B F 36 15.1 13.8 31.7 36.6 13.0 -B F 37 15.2 14.3 33.9 38.5 14.7 -B F 38 15.3 14.2 32.6 38.3 13.8 -B F 39 15.4 13.3 32.4 37.6 13.8 -B F 40 15.5 13.8 33.4 38.7 14.7 -B F 41 15.6 13.9 32.8 37.9 13.4 -B F 42 15.6 14.7 33.9 39.5 14.3 -B F 43 15.7 13.9 33.6 38.5 14.1 -B F 44 15.8 15.0 34.5 40.3 15.3 -B F 45 16.2 15.2 34.5 40.1 13.9 -B F 46 16.4 14.0 34.2 39.8 15.2 -B F 47 16.7 16.1 36.6 41.9 15.4 -B F 48 17.4 16.9 38.2 44.1 16.6 -B F 49 17.5 16.7 38.6 44.5 17.0 -B F 50 19.2 16.5 40.9 47.9 18.1 -O M 1 9.1 6.9 16.7 18.6 7.4 -O M 2 10.2 8.2 20.2 22.2 9.0 -O M 3 10.7 8.6 20.7 22.7 9.2 -O M 4 11.4 9.0 22.7 24.8 10.1 -O M 5 12.5 9.4 23.2 26.0 10.8 -O M 6 12.5 9.4 24.2 27.0 11.2 -O M 7 12.7 10.4 26.0 28.8 12.1 -O M 8 13.2 11.0 27.1 30.4 12.2 -O M 9 13.4 10.1 26.6 29.6 12.0 -O M 10 13.7 11.0 27.5 30.5 12.2 -O M 11 14.0 11.5 29.2 32.2 13.1 -O M 12 14.1 10.4 28.9 31.8 13.5 -O M 13 14.1 10.5 29.1 31.6 13.1 -O M 14 14.1 10.7 28.7 31.9 13.3 -O M 15 14.2 10.6 28.7 31.7 12.9 -O M 16 14.2 10.7 27.8 30.9 12.7 -O M 17 14.2 11.3 29.2 32.2 13.5 -O M 18 14.6 11.3 29.9 33.5 12.8 -O M 19 14.7 11.1 29.0 32.1 13.1 -O M 20 15.1 11.4 30.2 33.3 14.0 -O M 21 15.1 11.5 30.9 34.0 13.9 -O M 22 15.4 11.1 30.2 33.6 13.5 -O M 23 15.7 12.2 31.7 34.2 14.2 -O M 24 16.2 11.8 32.3 35.3 14.7 -O M 25 16.3 11.6 31.6 34.2 14.5 -O M 26 17.1 12.6 35.0 38.9 15.7 -O M 27 17.4 12.8 36.1 39.5 16.2 -O M 28 17.5 12.0 34.4 37.3 15.3 -O M 29 17.5 12.7 34.6 38.4 16.1 -O M 30 17.8 12.5 36.0 39.8 16.7 -O M 31 17.9 12.9 36.9 40.9 16.5 -O M 32 18.0 13.4 36.7 41.3 17.1 -O M 33 18.2 13.7 38.8 42.7 17.2 -O M 34 18.4 13.4 37.9 42.2 17.7 -O M 35 18.6 13.4 37.8 41.9 17.3 -O M 36 18.6 13.5 36.9 40.2 17.0 -O M 37 18.8 13.4 37.2 41.1 17.5 -O M 38 18.8 13.8 39.2 43.3 17.9 -O M 39 19.4 14.1 39.1 43.2 17.8 -O M 40 19.4 14.4 39.8 44.3 17.9 -O M 41 20.1 13.7 40.6 44.5 18.0 -O M 42 20.6 14.4 42.8 46.5 19.6 -O M 43 21.0 15.0 42.9 47.2 19.4 -O M 44 21.5 15.5 45.5 49.7 20.9 -O M 45 21.6 15.4 45.7 49.7 20.6 -O M 46 21.6 14.8 43.4 48.2 20.1 -O M 47 21.9 15.7 45.4 51.0 21.1 -O M 48 22.1 15.8 44.6 49.6 20.5 -O M 49 23.0 16.8 47.2 52.1 21.5 -O M 50 23.1 15.7 47.6 52.8 21.6 -O F 1 10.7 9.7 21.4 24.0 9.8 -O F 2 11.4 9.2 21.7 24.1 9.7 -O F 3 12.5 10.0 24.1 27.0 10.9 -O F 4 12.6 11.5 25.0 28.1 11.5 -O F 5 12.9 11.2 25.8 29.1 11.9 -O F 6 14.0 11.9 27.0 31.4 12.6 -O F 7 14.0 12.8 28.8 32.4 12.7 -O F 8 14.3 12.2 28.1 31.8 12.5 -O F 9 14.7 13.2 29.6 33.4 12.9 -O F 10 14.9 13.0 30.0 33.7 13.3 -O F 11 15.0 12.3 30.1 33.3 14.0 -O F 12 15.6 13.5 31.2 35.1 14.1 -O F 13 15.6 14.0 31.6 35.3 13.8 -O F 14 15.6 14.1 31.0 34.5 13.8 -O F 15 15.7 13.6 31.0 34.8 13.8 -O F 16 16.1 13.6 31.6 36.0 14.0 -O F 17 16.1 13.7 31.4 36.1 13.9 -O F 18 16.2 14.0 31.6 35.6 13.7 -O F 19 16.7 14.3 32.3 37.0 14.7 -O F 20 17.1 14.5 33.1 37.2 14.6 -O F 21 17.5 14.3 34.5 39.6 15.6 -O F 22 17.5 14.4 34.5 39.0 16.0 -O F 23 17.5 14.7 33.3 37.6 14.6 -O F 24 17.6 14.0 34.0 38.6 15.5 -O F 25 18.0 14.9 34.7 39.5 15.7 -O F 26 18.0 16.3 37.9 43.0 17.2 -O F 27 18.3 15.7 35.1 40.5 16.1 -O F 28 18.4 15.5 35.6 40.0 15.9 -O F 29 18.4 15.7 36.5 41.6 16.4 -O F 30 18.5 14.6 37.0 42.0 16.6 -O F 31 18.6 14.5 34.7 39.4 15.0 -O F 32 18.8 15.2 35.8 40.5 16.6 -O F 33 18.9 16.7 36.3 41.7 15.3 -O F 34 19.1 16.0 37.8 42.3 16.8 -O F 35 19.1 16.3 37.9 42.6 17.2 -O F 36 19.7 16.7 39.9 43.6 18.2 -O F 37 19.9 16.6 39.4 43.9 17.9 -O F 38 19.9 17.9 40.1 46.4 17.9 -O F 39 20.0 16.7 40.4 45.1 17.7 -O F 40 20.1 17.2 39.8 44.1 18.6 -O F 41 20.3 16.0 39.4 44.1 18.0 -O F 42 20.5 17.5 40.0 45.5 19.2 -O F 43 20.6 17.5 41.5 46.2 19.2 -O F 44 20.9 16.5 39.9 44.7 17.5 -O F 45 21.3 18.4 43.8 48.4 20.0 -O F 46 21.4 18.0 41.2 46.2 18.7 -O F 47 21.7 17.1 41.7 47.2 19.6 -O F 48 21.9 17.2 42.6 47.4 19.5 -O F 49 22.5 17.2 43.0 48.7 19.8 -O F 50 23.1 20.2 46.2 52.5 21.1 diff --git a/GPy/util/datasets/mocap/ankur/ankurDataPoseSilhouette.mat b/GPy/util/datasets/mocap/ankur/ankurDataPoseSilhouette.mat deleted file mode 100644 index 350618df..00000000 Binary files a/GPy/util/datasets/mocap/ankur/ankurDataPoseSilhouette.mat and /dev/null differ diff --git a/GPy/util/datasets/pumadyn-32nm/Dataset.data.gz b/GPy/util/datasets/pumadyn-32nm/Dataset.data.gz deleted file mode 100644 index 27b07e7c..00000000 Binary files a/GPy/util/datasets/pumadyn-32nm/Dataset.data.gz and /dev/null differ diff --git a/GPy/util/datasets/pumadyn-32nm/Dataset.spec b/GPy/util/datasets/pumadyn-32nm/Dataset.spec deleted file mode 100644 index aa2de227..00000000 --- a/GPy/util/datasets/pumadyn-32nm/Dataset.spec +++ /dev/null @@ -1,44 +0,0 @@ -# -# Puma forward dynamics -- 32nm = 32 inputs, high nonlinearity, med noise -# -# -Origin: simulated - -Usage: assessment - -Order: uninformative - -Attributes: - 1 theta1 u [-3.1416,3.1416] # ang position of joint 1 in radians - 2 theta2 u [-3.1416,3.1416] # ang position of joint 2 in radians - 3 theta3 u [-3.1416,3.1416] # ang position of joint 3 in radians - 4 theta4 u [-3.1416,3.1416] # ang position of joint 4 in radians - 5 theta5 u [-3.1416,3.1416] # ang position of joint 5 in radians - 6 theta6 u [-3.1416,3.1416] # ang position of joint 6 in radians - 7 thetad1 u (-Inf,Inf) # ang vel of joint 1 in rad/sec - 8 thetad2 u (-Inf,Inf) # ang vel of joint 2 in rad/sec - 9 thetad3 u (-Inf,Inf) # ang vel of joint 3 in rad/sec - 10 thetad4 u (-Inf,Inf) # ang vel of joint 4 in rad/sec - 11 thetad5 u (-Inf,Inf) # ang vel of joint 5 in rad/sec - 12 thetad6 u (-Inf,Inf) # ang vel of joint 6 in rad/sec - 13 tau1 u (-Inf,Inf) # torque on jt 1 - 14 tau2 u (-Inf,Inf) # torque on jt 2 - 15 tau3 u (-Inf,Inf) # torque on jt 3 - 16 tau4 u (-Inf,Inf) # torque on jt 4 - 17 tau5 u (-Inf,Inf) # torque on jt 5 - 18 dm1 u [0,Inf) # proportion change in mass of link 1 - 19 dm2 u [0,Inf) # prop change in mass of link 2 - 20 dm3 u [0,Inf) # prop change in mass of link 3 - 21 dm4 u [0,Inf) # prop change in mass of link 4 - 22 dm5 u [0,Inf) # prop change in mass of link 5 - 23 da1 u [0,Inf) # prop change in length of link 1 - 24 da2 u [0,Inf) # prop change in length of link 2 - 25 da3 u [0,Inf) # prop change in length of link 3 - 26 da4 u [0,Inf) # prop change in length of link 4 - 27 da5 u [0,Inf) # prop change in length of link 5 - 28 db1 u [0,Inf) # prop change in visc friction of link 1 - 29 db2 u [0,Inf) # prop change in visc friction of link 2 - 30 db3 u [0,Inf) # prop change in visc friction of link 3 - 31 db4 u [0,Inf) # prop change in visc friction of link 4 - 32 db5 u [0,Inf) # prop change in visc friction of link 5 - 33 thetadd6 u (-Inf,Inf) # ang acceleration of joint 6 diff --git a/GPy/util/datasets/pumadyn-32nm/accel/Prototask.data.gz b/GPy/util/datasets/pumadyn-32nm/accel/Prototask.data.gz deleted file mode 100644 index 20b51bbd..00000000 Binary files a/GPy/util/datasets/pumadyn-32nm/accel/Prototask.data.gz and /dev/null differ diff --git a/GPy/util/datasets/pumadyn-32nm/accel/Prototask.spec b/GPy/util/datasets/pumadyn-32nm/accel/Prototask.spec deleted file mode 100644 index e92fcd15..00000000 --- a/GPy/util/datasets/pumadyn-32nm/accel/Prototask.spec +++ /dev/null @@ -1,12 +0,0 @@ -# -# Prototask.spec -# -Cases: all -Origin: simulated -Inputs: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 -Order: retain -Targets: 33 -Test-Set-Size: 4096 -Training-Set-Sizes: 64 128 256 512 1024 -Test-Set-Selection: hierarchical -Maximum-Number-Of-Instances: 8 diff --git a/GPy/util/datasets/pumadyn-32nm/accel/std.prior b/GPy/util/datasets/pumadyn-32nm/accel/std.prior deleted file mode 100644 index d5cf2c7c..00000000 --- a/GPy/util/datasets/pumadyn-32nm/accel/std.prior +++ /dev/null @@ -1,33 +0,0 @@ - 1 NLMH real - 2 NLMH real - 3 NLMH real - 4 NLMH real - 5 NLMH real - 6 NLMH real - 7 NLMH real - 8 NLMH real - 9 NLMH real - 10 NLMH real - 11 NLMH real - 12 NLMH real - 13 NLMH real - 14 NLMH real - 15 NLMH real - 16 NLMH real - 17 NLMH real - 18 NLMH real - 19 NLMH real - 20 NLMH real - 21 NLMH real - 22 NLMH real - 23 NLMH real - 24 NLMH real - 25 NLMH real - 26 NLMH real - 27 NLMH real - 28 NLMH real - 29 NLMH real - 30 NLMH real - 31 NLMH real - 32 NLMH real - 33 NLMH real diff --git a/GPy/util/datasets/synth.te b/GPy/util/datasets/synth.te deleted file mode 100644 index fe055bb2..00000000 --- a/GPy/util/datasets/synth.te +++ /dev/null @@ -1,1001 +0,0 @@ - xs ys yc - -0.970990139 0.429424950 0 - -0.631997027 0.251952852 0 - -0.773605760 0.690750778 0 - -0.606211523 0.175677956 0 - -0.539409005 0.376744239 0 - -0.960325850 0.110040710 0 - -1.041375608 0.328508085 0 - -0.822600536 0.175874200 0 - -0.943714771 -0.180633309 0 - -0.968763299 0.296070217 0 - -0.853637980 0.644010559 0 - -0.771994930 0.476344773 0 - -0.718952712 0.090457675 0 - -0.539520701 0.447837856 0 - -0.540093447 0.551067215 0 - -0.792923186 0.531235891 0 - -0.861472850 0.287352652 0 - -0.470131571 0.544251260 0 - -0.770683778 0.482733051 0 - -0.803031230 0.228632039 0 - -0.962520756 0.367759881 0 - -0.681960494 0.495354977 0 - -0.433007837 0.213645636 0 - -0.336831640 0.293614869 0 - -0.696425307 0.315194495 0 - -0.355766886 0.269794553 0 - -0.547898136 0.277054714 0 - -0.799663889 0.292931173 0 - -0.780012402 0.038437662 0 - -0.853938355 0.198423604 0 - -0.896295454 0.286916469 0 - -0.824028270 0.295231859 0 - -0.901075546 0.321018371 0 - -0.556718720 0.358145252 0 - -0.871004652 0.258992681 0 - -0.800820459 0.363123198 0 - -0.699003238 0.417050087 0 - -0.759409251 0.366156047 0 - -0.775268090 0.306716684 0 - -0.893576947 -0.096908084 0 - -0.284857192 0.307321395 0 - -0.665571750 0.365820514 0 - -0.741374392 0.298498149 0 - -0.767733049 0.245811163 0 - -0.779306345 0.319092986 0 - -0.892190952 0.201459901 0 - -0.122811626 0.516497113 0 - -0.731730651 0.055992550 0 - -1.011976425 0.344692082 0 - -0.573762197 0.059676643 0 - -0.641425285 0.333730563 0 - -0.985902178 0.162020997 0 - -0.661140507 0.136840396 0 - -0.749218489 0.185148533 0 - -0.540329548 0.387396621 0 - -0.592092859 0.447510299 0 - -0.860077357 0.218917745 0 - -0.867516891 -0.137491677 0 - -0.590055695 0.466004783 0 - -0.775966325 0.403399745 0 - -0.849687489 0.315466589 0 - -0.746283040 0.256242513 0 - -0.700854929 0.518361424 0 - -0.923680439 0.449453255 0 - -0.912092992 0.407980138 0 - -0.650765709 0.412200546 0 - -0.980330108 0.299281948 0 - -0.744408938 0.203087089 0 - -0.604170665 0.326156917 0 - -0.735903002 0.655288145 0 - -0.643607616 0.513819006 0 - -0.963376987 0.249000843 0 - -0.426980732 0.282178155 0 - -0.654762824 0.562181098 0 - -0.843491783 0.345421521 0 - -0.553968009 0.538960351 0 - -0.716946447 0.122102049 0 - -0.775328790 0.498892271 0 - -0.640289822 0.435762487 0 - -0.516878864 0.182337108 0 - -0.952125366 0.298280511 0 - -0.723017513 0.256182935 0 - -0.658805240 0.269147489 0 - -0.464552773 0.218324319 0 - -0.564517221 0.196511498 0 - -0.814096964 0.228304066 0 - -0.396184143 0.511765539 0 - -0.996637001 0.209223029 0 - -0.815950989 0.235966820 0 - -0.526626592 0.418687316 0 - -0.667763995 0.428833798 0 - -0.658898181 0.031828081 0 - -0.923935948 0.530254142 0 - -0.909973792 0.451785093 0 - -0.410551229 0.252159645 0 - -0.462064440 0.230673805 0 - -0.366146922 -0.036140226 0 - -0.595861370 0.400288539 0 - -0.704392096 0.238984335 0 - -0.841225771 0.577095745 0 - -0.969828933 0.155360193 0 - -0.557037265 0.314190393 0 - -0.671104208 0.361767035 0 - -0.503286446 0.566417412 0 - -0.950325858 0.078493347 0 - -0.675813120 0.319308250 0 - -0.831561973 0.143581661 0 - -0.435074090 0.492855894 0 - -0.793021028 0.118140919 0 - -0.848627588 0.082762982 0 - -0.820269797 0.395714263 0 - -0.422092727 0.477760711 0 - -0.408676218 0.374918252 0 - -0.546953839 0.473748255 0 - -0.735444130 0.266138774 0 - -0.582205470 0.271991191 0 - -0.338346632 0.242426860 0 - -0.535045557 0.118043648 0 - -0.493743519 0.717856305 0 - -0.760932705 0.416245530 0 - -0.515677444 0.184242721 0 - -0.673504588 0.296239478 0 - -0.459705697 0.186931282 0 - -0.694881314 0.381840980 0 - -0.387447545 0.080890693 0 - -0.596036129 0.184974829 0 - -0.664372536 0.423940859 0 - -0.883742635 0.614943083 0 - -0.509344933 0.290033636 0 - -0.925124882 0.604748154 0 - -0.841007867 0.290327096 0 - -0.894120137 0.157169952 0 - -0.646573229 0.609447746 0 - -1.017873059 0.148721295 0 - -0.582528753 0.184940557 0 - -0.897329196 0.532091737 0 - -0.465016860 0.285520226 0 - -0.726508681 0.181867205 0 - -0.514352969 0.156961029 0 - -0.739246011 0.408845252 0 - -0.537049319 0.307417180 0 - -0.923407832 0.492249753 0 - -0.663217181 0.241275721 0 - -0.871900824 0.191786697 0 - -0.574764695 0.216699985 0 - -0.778723382 0.417127421 0 - -0.717491428 0.169911784 0 - -0.293985190 0.341692708 0 - -0.732183039 0.611673182 0 - -0.672451661 0.290330390 0 - -0.392906014 0.314507904 0 - -0.821496561 0.383502471 0 - -0.441649840 0.131552989 0 - -0.734149425 0.138366727 0 - -0.353467324 0.403725989 0 - -0.756729286 0.140926608 0 - -0.985271855 0.307051129 0 - -0.734362749 0.131915653 0 - -0.843814454 0.508797861 0 - -0.871470989 0.409534472 0 - -0.643774042 0.386072579 0 - -0.617659001 0.067340392 0 - -0.282068649 0.693923139 0 - -0.402555368 0.204385656 0 - -0.458583969 0.420739380 0 - -0.846296983 0.277152491 0 - -1.048542317 0.338822747 0 - -0.799795307 0.309430762 0 - -0.852040552 0.307281614 0 - -0.616474678 0.252952510 0 - -0.691690351 0.272750414 0 - -0.809142202 0.441901584 0 - -0.837139722 0.269171931 0 - -0.743520251 0.247417602 0 - -0.660650230 -0.028489077 0 - -0.594815839 0.109164679 0 - -0.597128033 -0.037465241 0 - -0.921420258 -0.069844290 0 - -0.877566913 0.304297059 0 - -0.765371773 0.596974416 0 - -0.699840550 0.167126769 0 - -0.523434825 -0.064742897 0 - -0.656387744 0.012460495 0 - -1.036967640 0.141450813 0 - -0.715165192 0.217239838 0 - -0.747858131 0.569994813 0 - -0.625684541 0.320122450 0 - -0.756699924 0.174518616 0 - -0.679690670 0.438410861 0 - -0.612004202 -0.134269826 0 - -0.647906789 0.239638558 0 - -0.691066413 0.255635309 0 - -0.675112764 0.550169559 0 - -0.851072790 0.474955936 0 - -0.837051482 0.408050507 0 - -0.961405831 0.588207922 0 - -0.642774716 0.163487304 0 - -0.892075711 0.064132978 0 - -0.927798777 0.072240031 0 - -0.751800726 0.409258566 0 - -0.805341030 0.064157327 0 - -0.692838235 0.171715163 0 - -0.703943931 0.476730183 0 - -0.694804098 0.268655402 0 - -0.567758798 0.207116645 0 - -0.822380000 0.268404036 0 - -0.565082539 0.327015498 0 - -0.724181702 0.625763803 0 - -0.916357511 0.236124996 0 - -0.430182548 0.268033748 0 - -0.632645741 0.522382761 0 - -0.850972862 0.345168936 0 - -0.609691020 0.501872186 0 - -0.705661024 0.220694983 0 - -0.693161871 0.100244402 0 - -0.633922642 0.390701059 0 - -0.710406768 0.015180240 0 - -1.055052036 0.517833140 0 - -0.621276063 0.167382599 0 - -0.613423246 0.266134950 0 - -0.989565379 0.166693580 0 - -0.923580375 0.412606504 0 - -0.889581095 0.426760653 0 - -0.930040388 0.240533824 0 - -0.691421356 0.006339557 0 - -1.031412255 0.482277646 0 - -0.701394895 0.462356010 0 - -0.627721178 0.243813111 0 - -0.829380326 0.487867261 0 - -0.612200851 0.121715064 0 - -0.528139634 0.449962538 0 - -0.616674472 0.058254182 0 - -0.649202842 0.263909873 0 - -0.655384302 0.225793561 0 - -0.750085240 0.119545244 0 - -0.471920626 0.278830975 0 - -0.219905912 0.315052974 0 - -0.871701260 0.240570129 0 - -0.730197977 0.295504781 0 - -0.620676222 0.046383576 0 - -0.657830687 0.265899761 0 - -0.475352116 0.279850946 0 - -0.734794644 0.365235616 0 - -0.772673638 0.355477724 0 - -0.620710470 0.770796635 0 - -0.529626406 0.091067609 0 - -0.730846476 0.642803364 0 - -0.938694493 0.324275071 0 - -0.723706354 -0.017999841 0 - -0.979569099 -0.003034376 0 - 0.448754392 0.015050386 0 - -0.077907282 0.245842052 0 - 0.316786631 0.252917817 0 - 0.229597046 0.067681573 0 - 0.197949376 0.310003887 0 - 0.048404642 -0.037865268 0 - 0.270601003 0.260199166 0 - 0.516192043 0.258256258 0 - 0.154718993 0.040306842 0 - -0.005611276 0.223658499 0 - 0.365076313 -0.001956641 0 - 0.086615547 0.138482814 0 - 0.198645891 0.047611642 0 - 0.131870660 0.402255360 0 - 0.585894768 0.433203159 0 - -0.023498655 0.379919943 0 - 0.394174061 0.533936878 0 - 0.595983773 0.680516952 0 - 0.388419733 0.321931614 0 - 0.270452263 0.360309566 0 - 0.336909893 0.176262915 0 - 0.481432232 0.326027716 0 - 0.246865240 0.532700400 0 - -0.020439631 0.132155124 0 - 0.389941424 0.309223343 0 - 0.048115168 0.104763308 0 - 0.284816331 -0.048775617 0 - 0.529166911 0.285314795 0 - 0.349208427 0.063167392 0 - 0.323888259 0.192358455 0 - 0.321213977 0.101190083 0 - 0.303365953 0.286689359 0 - -0.075979803 0.312196126 0 - 0.317894059 0.110578558 0 - 0.136145272 0.223509762 0 - 0.086777443 0.397316175 0 - 0.330555298 -0.018831347 0 - 0.202260475 0.212061643 0 - 0.276704436 0.541792424 0 - 0.244814590 -0.033434890 0 - 0.429043775 0.183967494 0 - 0.340412789 0.237474210 0 - 0.382064022 0.123295299 0 - 0.381833239 0.085809636 0 - 0.424417864 0.321954582 0 - 0.206306313 0.348957865 0 - 0.091614953 0.309132098 0 - 0.627597689 0.472188745 0 - 0.270244718 0.361936451 0 - 0.127928396 0.368238186 0 - 0.399192895 0.120050819 0 - 0.450618123 0.452328633 0 - 0.254900382 0.410220018 0 - 0.259523390 0.124427489 0 - 0.417004689 0.300805900 0 - 0.346581338 0.283479475 0 - 0.748854615 0.246812787 0 - 0.428530072 0.636260298 0 - 0.127369504 0.321732050 0 - 0.528722462 0.227075837 0 - 0.618168220 0.327309276 0 - 0.286029472 0.215643450 0 - 0.142578461 0.112955825 0 - 0.282764909 0.091628143 0 - 0.788220007 0.464545152 0 - 0.119165220 0.239567886 0 - 0.244772936 0.014906673 0 - 0.160442893 0.455259044 0 - 0.454067300 0.332582882 0 - -0.057868287 0.498675578 0 - -0.111365306 0.079756044 0 - 0.198824819 0.476017542 0 - 0.595468169 0.162120124 0 - 0.085627364 0.315262031 0 - 0.465261497 0.123331422 0 - 0.359673625 0.364504393 0 - 0.111822093 0.296370162 0 - 0.509269078 0.464037322 0 - 0.470888018 0.285556829 0 - 0.393262912 0.093782124 0 - 0.311897634 0.286626364 0 - 0.151594554 0.268411495 0 - 0.084423498 0.319282396 0 - 0.208641564 0.230226362 0 - 0.361230606 0.506867239 0 - 0.425667999 0.239049251 0 - 0.399549324 0.136827304 0 - 0.279615939 0.310402719 0 - 0.109049911 0.630255432 0 - 0.102929855 0.446152743 0 - 0.551085316 0.313983603 0 - 0.579201159 0.179353765 0 - 0.356514867 0.178396614 0 - 0.259861364 0.096917764 0 - 0.545480531 0.272730569 0 - 0.398789597 0.149343536 0 - 0.383441254 0.243298247 0 - 0.405415302 0.351024129 0 - 0.249091946 0.423059272 0 - 0.293535767 0.133960638 0 - 0.149869213 0.305675082 0 - 0.224986842 0.464864831 0 - 0.240826479 0.233973445 0 - 0.122917552 0.406179372 0 - 0.301231733 0.178773911 0 - 0.257698819 0.537312141 0 - 0.446288764 0.206483371 0 - 0.511214849 0.156330717 0 - 0.474675267 0.454212426 0 - 0.373402327 0.107531816 0 - 0.453575217 0.013564367 0 - 0.363708989 0.324209899 0 - 0.323172397 0.308234424 0 - 0.263568182 0.097321560 0 - 0.375989273 0.511128488 0 - 0.483416817 -0.027606822 0 - 0.412708967 0.353260156 0 - 0.294590710 0.338631607 0 - 0.148425126 0.313998286 0 - 0.476236614 0.009138517 0 - 0.051021769 0.518229423 0 - 0.488029582 0.492206314 0 - 0.193703118 0.356127440 0 - 0.390385684 0.402548715 0 - 0.166515062 0.077486533 0 - 0.378346001 0.205554127 0 - 0.059890677 0.615481812 0 - -0.077252668 0.325973024 0 - 0.519325984 0.352901733 0 - 0.271955420 0.031010063 0 - 0.027254987 0.289394991 0 - 0.437437673 -0.027210937 0 - 0.028370640 0.166304765 0 - 0.433657082 0.604909277 0 - 0.280505393 0.022916023 0 - 0.300735977 0.188023897 0 - 0.182031568 0.292354741 0 - 0.316158641 0.423973591 0 - 0.530601146 0.287109075 0 - 0.210237556 0.384357431 0 - 0.399444521 0.496882692 0 - 0.272113433 0.437262474 0 - 0.418146305 0.145521656 0 - 0.504825239 0.154106314 0 - 0.166974207 0.180641380 0 - 0.106527356 0.500370591 0 - 0.607348514 0.184680121 0 - 0.517847638 0.396858357 0 - 0.231553652 0.403086636 0 - 0.255029497 0.430592319 0 - 0.287511011 0.219412906 0 - 0.200852107 0.272097495 0 - 0.226547849 0.244596483 0 - 0.011878373 0.352803074 0 - 0.380569910 0.434089493 0 - 0.519215428 0.072764703 0 - 0.623854880 0.338983888 0 - 0.183173455 0.255322403 0 - 0.226420389 0.075341621 0 - 0.455356509 0.367957232 0 - 0.332301375 -0.011058516 0 - 0.376306021 0.188460770 0 - 0.428169526 0.054583036 0 - 0.145829529 0.368253163 0 - 0.493757540 0.376063674 0 - 0.529391969 0.074698658 0 - 0.409826160 0.280322788 0 - 0.612354746 0.120926664 0 - 0.221568084 0.273458368 0 - 0.427545649 0.106200846 0 - 0.533325611 0.591671136 0 - 0.462109537 0.357955560 0 - 0.182362120 0.298520960 0 - 0.310107790 0.301510248 0 - 0.159799550 0.257640193 0 - 0.254288145 0.374308080 0 - 0.316374077 0.029411804 0 - 0.285942260 0.338773678 0 - 0.552541865 -0.016858031 0 - -0.004090460 0.399012387 0 - 0.060484031 0.277592649 0 - 0.545097739 0.218461339 0 - 0.268284924 0.267903340 0 - 0.159022649 0.531382417 0 - 0.492658208 0.486286052 0 - -0.128240252 0.533333926 0 - 0.447760080 0.284865402 0 - 0.239374886 0.462386877 0 - 0.138634894 0.395550274 0 - 0.417284343 0.200022118 0 - 0.178303979 0.306720386 0 - 0.221552636 0.396534895 0 - -0.009120409 0.724738825 0 - 0.292748806 0.414432640 0 - 0.300563713 0.214325496 0 - 0.242506812 0.232690286 0 - 0.234494302 0.247006083 0 - 0.352550448 0.351581175 0 - 0.185994378 0.269914887 0 - 0.409680307 0.212370722 0 - 0.163919950 0.026130185 0 - 0.169756191 0.104358886 0 - 0.354398935 0.227524046 0 - 0.388870060 0.042378087 0 - 0.344788486 0.246053805 0 - 0.193145216 0.271352787 0 - 0.430800164 0.263193765 0 - 0.232808591 0.445516712 0 - 0.326059317 0.563886858 0 - 0.330837091 0.256040145 0 - 0.323691216 0.356872920 0 - 0.367737090 -0.088857683 0 - 0.530750561 0.327389964 0 - 0.089596372 0.338423910 0 - 0.432192982 0.394261493 0 - 0.186694048 0.438187113 0 - 0.458275145 0.324647633 0 - 0.480078071 0.374810492 0 - 0.582758378 0.390433695 0 - 0.437808065 0.389265557 0 - 0.208830936 0.010096493 0 - 0.377797466 0.474572076 0 - 0.183803076 -0.090083970 0 - 0.155682547 0.537563127 0 - 0.071926861 0.572783083 0 - 0.364435618 -0.123841713 0 - 0.408213991 0.254483065 0 - 0.466073956 0.398618252 0 - 0.614281743 0.283302172 0 - -0.047151673 0.214579449 0 - 0.326917150 0.468066389 0 - 0.458840582 0.443470083 0 - 0.109537926 0.189505910 0 - 0.161895892 0.123705078 0 - 0.450055408 0.501518844 0 - 0.368869484 0.557190529 0 - 0.334209119 0.413960488 0 - -0.031121068 0.228014456 0 - 0.176753850 0.430199990 0 - 0.552527788 0.224902508 0 - 0.304266409 0.220287210 0 - 0.210462653 0.415336683 0 - 0.063953710 0.045543235 0 - -0.063149684 0.351389125 0 - 0.073535710 0.252143534 0 - 0.665453703 0.203720086 0 - 0.539642761 0.279986737 0 - 0.250981585 0.069569958 0 - 0.392679888 0.090261998 0 - 0.431409216 0.288456378 0 - -0.516451834 0.501256111 1 - -0.116775286 0.483404773 1 - -0.327960793 0.546240228 1 - -0.394572192 0.755243715 1 - -0.110201988 0.553402230 1 - -0.160538577 0.579525838 1 - -0.124742465 0.323661757 1 - -0.109742769 0.696514698 1 - -0.687328305 0.807033124 1 - -0.358374262 0.807265743 1 - -0.335836520 0.392482381 1 - -0.321604223 0.591913273 1 - -0.091546228 0.562483354 1 - -0.660890881 0.611049023 1 - -0.561938441 0.907495412 1 - -0.244433911 0.451367292 1 - -0.392885460 0.550604753 1 - -0.429608736 0.644152661 1 - -0.090462865 0.522251590 1 - -0.436484641 0.520039359 1 - -0.519966218 0.940830736 1 - -0.418391404 1.011277424 1 - -0.405807798 0.738999068 1 - -0.085688384 0.847932361 1 - -0.210347223 0.416696729 1 - -0.531896660 0.452618557 1 - -0.294588066 0.846012850 1 - -0.092753982 0.693082777 1 - -0.314549926 0.797236706 1 - -0.262918395 0.787474678 1 - -0.389819133 0.579880509 1 - -0.162163174 0.315021403 1 - -0.418250429 0.684349895 1 - -0.356533257 0.896022491 1 - -0.461800168 0.782142975 1 - -0.149067005 0.837864969 1 - -0.376621128 0.553207248 1 - -0.235807559 0.642937572 1 - -0.433816383 0.568682995 1 - 0.003602461 0.804352974 1 - -0.286855152 0.710632583 1 - -0.424066790 0.994872459 1 - -0.270030002 0.833427152 1 - -0.239212386 0.378268423 1 - -0.255304685 0.822105360 1 - -0.196569409 0.703182679 1 - -0.125203354 0.844725933 1 - -0.338351441 0.680964321 1 - -0.383184405 0.839383812 1 - -0.398513962 0.750284450 1 - 0.027844709 0.537770177 1 - -0.295483256 0.846722230 1 - -0.552989277 0.794817114 1 - -0.004901838 0.608282407 1 - -0.029384352 0.614072912 1 - -0.444694587 0.779042878 1 - -0.338928122 0.789725990 1 - 0.122195503 0.784475027 1 - -0.186584991 0.560614872 1 - -0.295015658 0.840559001 1 - -0.102630670 0.675938267 1 - -0.430785693 0.645617846 1 - -0.099297566 0.894434898 1 - -0.009264193 1.012595196 1 - -0.560973647 0.807423104 1 - -0.536294204 0.529432752 1 - -0.563297476 0.646381268 1 - -0.292902091 0.620924549 1 - -0.107464304 0.615869773 1 - -0.261216307 0.699646352 1 - -0.105100716 0.868085863 1 - -0.362473095 0.683245848 1 - -0.548222187 0.726739882 1 - -0.522717054 0.636324411 1 - -0.406753361 0.858975870 1 - -0.272149948 1.009788333 1 - -0.058505372 0.722037722 1 - -0.286284031 0.564831018 1 - -0.145641743 0.527786275 1 - -0.254951568 0.909735133 1 - -0.200910922 0.911648155 1 - -0.397769966 0.398117280 1 - -0.547436085 0.779495789 1 - -0.231129177 0.491139768 1 - -0.473894736 0.682466158 1 - -0.231075189 0.453157246 1 - -0.268776826 0.676814477 1 - -0.180889587 0.880462410 1 - -0.326237906 0.599734095 1 - -0.252657163 0.575832499 1 - -0.294967226 0.707617098 1 - -0.441714737 0.649258390 1 - -0.434336942 0.859634714 1 - -0.080950672 0.608362742 1 - -0.256056671 0.465280126 1 - -0.767972482 0.818894418 1 - -0.250929687 0.807765177 1 - -0.233531508 0.536107452 1 - -0.166252171 0.578022234 1 - -0.399389870 0.961981117 1 - -0.383257048 0.918196737 1 - -0.246208261 0.728269018 1 - -0.112873567 0.825689335 1 - -0.096666032 0.707306804 1 - -0.457949369 0.704015342 1 - -0.255003562 0.504258034 1 - -0.073434667 0.722783609 1 - -0.409375468 0.526062925 1 - -0.363348126 0.881713044 1 - -0.257217769 0.607597755 1 - -0.349331300 0.703112332 1 - -0.151880213 0.492886000 1 - -0.404171363 0.737139545 1 - -0.462320910 0.423673110 1 - -0.546143281 0.835222198 1 - -0.229962943 0.611218821 1 - -0.246561278 0.550748181 1 - -0.392635644 0.396901704 1 - -0.175983074 0.659236133 1 - -0.160444346 0.856989440 1 - -0.341235994 0.536421185 1 - -0.333233675 0.558945553 1 - -0.274226030 0.677337101 1 - -0.394217634 1.084965709 1 - -0.177110920 1.174990894 1 - -0.403972304 0.705580257 1 - -0.387046408 0.654499407 1 - -0.044038573 0.753839485 1 - -0.278389636 0.349432166 1 - -0.272249470 0.234622985 1 - -0.191592271 0.380898603 1 - -0.590368203 0.698331693 1 - -0.374188840 0.819242381 1 - -0.351703587 0.730361507 1 - -0.281959049 0.469288157 1 - -0.751945036 0.885219702 1 - -0.306929899 0.574182522 1 - -0.762727447 0.890352701 1 - -0.564448380 0.729602705 1 - 0.040323664 0.779572618 1 - -0.462188702 0.998868915 1 - -0.447915766 0.843500207 1 - -0.217001799 0.796623800 1 - -0.112509220 0.611900551 1 - -0.131149777 0.948975611 1 - -0.403054671 0.786868546 1 - 0.008848708 0.652933806 1 - 0.090647590 0.654317764 1 - -0.358620932 0.936462477 1 - -0.441265488 0.326283245 1 - -0.479842420 0.788087594 1 - -0.588843824 0.648214630 1 - -0.562606783 0.754763105 1 - -0.514270007 0.324312047 1 - -0.392905106 0.821041597 1 - -0.075132059 0.685702990 1 - -0.196830870 0.714112820 1 - -0.301481674 0.552313534 1 - -0.181585205 0.659988770 1 - -0.114373131 0.736877415 1 - -0.331936585 0.440209520 1 - -0.266807581 0.545085006 1 - -0.475109818 0.947483833 1 - -0.557037972 0.778719573 1 - -0.193240214 0.574512048 1 - -0.029348731 0.829601881 1 - -0.383376526 0.624385592 1 - -0.035071125 0.812800625 1 - -0.060506093 0.772166835 1 - -0.160710931 0.530042141 1 - -0.210362275 0.567446850 1 - -0.283272444 0.798839816 1 - -0.520613526 0.837372559 1 - -0.263870495 0.687937002 1 - -0.060226406 0.688228649 1 - -0.429473669 0.654717940 1 - -0.325250467 0.791105596 1 - 0.094837102 0.750572909 1 - -0.326848641 0.823553280 1 - -0.537630937 0.827068887 1 - -0.589458171 0.897096209 1 - -0.255109811 0.737443245 1 - -0.350722503 0.739648314 1 - -0.111745167 0.705987527 1 - -0.213435551 0.466547665 1 - -0.272518877 0.683481004 1 - -0.440414101 0.974317798 1 - -0.303362790 0.576264653 1 - -0.221200040 0.987888085 1 - -0.286914561 0.619578181 1 - 0.096845361 0.511673423 1 - -0.363110834 0.661562448 1 - -0.211246704 0.813171823 1 - -0.222052903 0.686080299 1 - -0.321828330 0.624357510 1 - -0.473737950 0.506318972 1 - -0.212793549 0.774693470 1 - 0.008463870 0.614591369 1 - -0.205693420 0.644919563 1 - -0.378486601 0.778361218 1 - -0.229442899 0.594732866 1 - -0.162703081 0.930991126 1 - -0.321296905 0.828610911 1 - -0.400332594 0.688297191 1 - -0.312050685 0.618494750 1 - -0.039349153 0.959790721 1 - -0.273914659 0.599403497 1 - -0.348565665 0.612606769 1 - -0.413758325 0.696448995 1 - -0.098831839 0.854519409 1 - -0.287690535 0.883301183 1 - -0.383124103 0.672367628 1 - -0.561271474 1.067278573 1 - -0.166431846 0.897151624 1 - -0.635114720 0.688087392 1 - -0.332175204 0.501477407 1 - -0.474805835 0.711218005 1 - -0.116004389 0.708363990 1 - -0.477937453 0.702949001 1 - -0.126810442 0.971409951 1 - -0.156822576 0.457687275 1 - -0.293523863 0.856486819 1 - -0.129615545 0.891819146 1 - -0.108242313 0.644814421 1 - -0.501979824 0.370050434 1 - -0.138108021 0.612928438 1 - -0.179322731 0.366517387 1 - -0.458093963 0.571370985 1 - -0.028565637 0.486501211 1 - -0.426175577 0.461765467 1 - -0.310680953 0.544905689 1 - -0.180247439 0.876336671 1 - -0.217870537 0.390856979 1 - -0.315992257 0.736172703 1 - 0.236276902 0.714179743 1 - -0.185456072 0.702294953 1 - -0.203065705 0.317910002 1 - -0.296142711 0.648026589 1 - -0.448939545 0.650603998 1 - 0.077064746 0.797884087 1 - 0.034024500 0.788213418 1 - -0.439519067 0.946446539 1 - -0.471452461 0.708540945 1 - -0.263821096 0.565778110 1 - -0.676333519 1.064998541 1 - -0.394630195 0.732544473 1 - -0.334698783 0.638313660 1 - 0.043828297 0.782970773 1 - 0.073254562 0.639405607 1 - -0.358305948 0.638878595 1 - 0.289824646 0.645297701 1 - 0.479141353 0.769272264 1 - 0.180670084 0.518893193 1 - 0.199825830 0.747216818 1 - 0.735249202 0.833027044 1 - 0.249991814 0.350660256 1 - 0.413137889 0.854044549 1 - 0.518581462 0.386362750 1 - 0.465359263 0.854392557 1 - 0.348309276 0.680024754 1 - 0.174782318 0.544423218 1 - 0.549911988 0.472172493 1 - 0.203934276 0.410263392 1 - 0.338644108 1.028370469 1 - 0.161322119 0.950855699 1 - 0.350961307 0.686427652 1 - 0.090257414 0.846995122 1 - 0.764373743 0.615571296 1 - 0.414756998 0.893306725 1 - 0.679361421 0.659759084 1 - 0.640285978 0.804268545 1 - 0.630876040 0.710028594 1 - 0.366370214 0.772543364 1 - 0.314611449 0.755070836 1 - 0.745924055 0.706345767 1 - 0.489768059 0.684198041 1 - 0.075247977 0.621422345 1 - 0.499573139 0.679632119 1 - 0.350405143 0.443980792 1 - 0.636928363 0.603842916 1 - 0.224908918 0.840917922 1 - -0.032261912 0.655726651 1 - 0.627052189 0.808688697 1 - 0.263348975 0.455434849 1 - 0.520257017 0.762965338 1 - 0.151882522 0.966544141 1 - 0.098482589 0.517323437 1 - 0.201212077 0.549826846 1 - 0.371298202 0.761389940 1 - 0.497766489 0.769076360 1 - 0.409493154 0.305118700 1 - 0.340849813 0.766677739 1 - 0.391675543 0.489773920 1 - 0.516131854 0.412661585 1 - 0.522760611 0.520845425 1 - 0.446358722 0.869775036 1 - 0.224400728 0.559199836 1 - 0.583149627 0.871728559 1 - 0.420184227 0.768544337 1 - 0.340883764 0.582414682 1 - 0.407626346 1.016274588 1 - 0.226804848 0.997357208 1 - 0.461550030 0.728402685 1 - 0.275762111 0.773039119 1 - 0.304760108 0.405069957 1 - 0.636786149 0.521153930 1 - 0.544820787 0.902598154 1 - 0.816098957 0.643244361 1 - 0.454637082 0.627059827 1 - 0.416886517 0.498139441 1 - 0.585814059 0.472857968 1 - 0.158972903 0.877325952 1 - 0.218197123 0.791103192 1 - 0.436713777 0.582375556 1 - 0.465359340 0.619108530 1 - 0.346901746 0.776639489 1 - 0.599207277 0.605698565 1 - 0.463002935 0.972725613 1 - 0.694263789 0.550710864 1 - 1.000277812 0.669240364 1 - 0.503660224 0.451743317 1 - 0.609419010 0.560098000 1 - 0.352923549 0.639530833 1 - 0.313797682 0.428469344 1 - 0.275593847 0.624510853 1 - 0.310310776 0.757815199 1 - 0.200769573 1.068014129 1 - 0.393611386 0.489922085 1 - 0.293284180 0.564537846 1 - 0.150904334 0.874953285 1 - 0.359648477 0.984800311 1 - 0.425437016 0.605205704 1 - 0.550057275 0.953322346 1 - 0.369377777 0.717383758 1 - 0.483823544 0.776401643 1 - 0.665201554 0.609337149 1 - 0.367662676 0.432857589 1 - 0.603654120 0.439204275 1 - 0.361992913 0.607744455 1 - 0.365320313 0.193465958 1 - 0.565587013 0.766374185 1 - 0.459978544 0.421990201 1 - 0.389662454 0.697573566 1 - 0.662029374 0.545080251 1 - 0.193287037 0.660104813 1 - 0.770581129 0.678276952 1 - 0.517729293 0.709447233 1 - 0.666759179 0.738395921 1 - 0.507357601 0.504291821 1 - 0.074897782 0.726624656 1 - 0.267419803 0.669125800 1 - 0.570998498 0.905961669 1 - 0.234076185 0.680851488 1 - 0.204728441 0.915150466 1 - 0.463600872 0.831022543 1 - 0.551695270 0.877530083 1 - 0.375064997 0.706265086 1 - 0.548113044 0.683542273 1 - 0.436411367 0.523946916 1 - 0.171669265 0.706402907 1 - 0.228628170 0.696358973 1 - 0.258176000 0.750019031 1 - 0.427636052 0.726640752 1 - 0.551129128 1.041844415 1 - 0.382357212 0.485587245 1 - 0.627187520 0.857796470 1 - 0.759430378 0.897903714 1 - 0.385966401 0.649098802 1 - 0.216206061 0.886147391 1 - 0.107421934 0.525437056 1 - 0.466619974 0.649300564 1 - 0.483552867 0.519368234 1 - 0.188288155 0.704849311 1 - 0.123111648 0.618943465 1 - 0.149201404 0.674098357 1 - 0.541125439 0.641048950 1 - 0.707584972 1.048980926 1 - 0.250259605 0.738434506 1 - 0.388929309 0.980538827 1 - 0.163559795 0.768820434 1 - 0.290938989 0.858416660 1 - 0.671326658 0.887569891 1 - 0.419646183 0.833301601 1 - 0.297576300 0.815635781 1 - 0.488205349 0.928912516 1 - 0.274956333 0.622947292 1 - 0.364636103 0.552039161 1 - 0.020765563 0.400801476 1 - 0.503582267 0.462402974 1 - 0.129743512 0.478205376 1 - 0.205737679 0.652800375 1 - 0.491663362 0.919029482 1 - 0.541928820 0.592238748 1 - 0.352448258 0.438954474 1 - 0.340546986 0.610581184 1 - 0.087362845 0.722352081 1 - 0.544510425 0.310570940 1 - 0.426834451 0.697519317 1 - 0.505026501 0.203961507 1 - 0.393952243 0.701709243 1 - 0.341212359 0.487823226 1 - 0.443882109 0.515215865 1 - 0.216623801 0.641423278 1 - 0.325421774 0.565006133 1 - 0.339954219 0.500219969 1 - 0.757953402 0.646113630 1 - 0.166511560 0.675639720 1 - 0.394924171 0.795156547 1 - 0.581373272 0.769434777 1 - 0.469451043 0.686613394 1 - 0.180074959 0.917903510 1 - 0.314960733 0.919406796 1 - 0.781475499 1.074871466 1 - 0.261043992 0.883671133 1 - 0.149151175 0.475484999 1 - 0.236371870 0.975832107 1 - 0.646323770 0.522312176 1 - 0.518347874 0.876936157 1 - 0.089471338 0.658664051 1 - 0.498070451 0.902620720 1 - 0.248059552 0.746906831 1 - 0.550195316 0.737298487 1 - 0.280602842 0.603132684 1 - 0.431834416 0.533887741 1 - 0.267799611 0.603699345 1 - 0.507750995 0.826989974 1 - -0.064478127 0.834070122 1 - 0.342112413 0.661643764 1 - 0.332313982 0.509083774 1 - 0.665012582 0.878512787 1 - 0.382910589 0.749228951 1 - 0.361027556 0.645111929 1 - 0.571981147 0.794214002 1 - 0.536918322 0.898472992 1 - 0.331872670 0.570367930 1 - 0.044037168 0.476641964 1 - 0.410716663 0.798924771 1 - 0.455083777 0.551831167 1 - 0.474594596 0.889946347 1 - 0.413672127 0.867650039 1 - 0.682171442 0.972182362 1 - 0.425353451 0.535316350 1 - 0.262277420 0.637457666 1 - 0.007860344 0.806598462 1 - 0.380999590 0.653580787 1 - 0.538437280 0.907997360 1 - 0.180415465 0.914334885 1 - 0.237060285 0.752505492 1 - 0.829663295 0.697894513 1 - 0.307664951 1.074702414 1 - 0.239849381 0.753987444 1 - 0.275375404 0.806554305 1 - 0.416984789 0.452953422 1 - 0.476493007 0.858473259 1 - 0.564497576 0.915314697 1 - 0.198295169 0.534934547 1 - 0.294198911 0.374100529 1 - 0.684760671 0.892746414 1 - 0.168075136 0.794230658 1 - 0.502763522 0.712129784 1 - 0.129722603 0.697110450 1 - 0.285983065 0.796121883 1 - 0.097239329 0.681159777 1 - 0.210574775 0.792652629 1 - 0.593896992 0.530407106 1 - 0.358836790 0.671400853 1 - 0.197591638 0.710584968 1 - 0.540587182 0.774780451 1 - 0.175106338 0.609394118 1 - 0.448304389 0.663333083 1 - 0.289880687 0.204721503 1 - 0.300130047 0.934825869 1 - 0.152511070 0.851596486 1 - 0.495317475 0.631046756 1 - 0.072423805 0.678667079 1 - 0.500846416 0.689706961 1 - 0.159104712 0.628206422 1 - 0.710308164 0.777809751 1 - 0.750642087 0.828037270 1 - 0.559868855 0.783081248 1 - 0.400801648 0.786167018 1 - 0.356480531 0.911823818 1 - 0.844132265 0.561509712 1 - 0.426337951 0.777438407 1 - 0.461052514 0.615763585 1 - 0.205997206 0.785369909 1 - 0.118613656 0.832647177 1 - 0.444428480 0.747145725 1 - 0.278467451 0.755943870 1 - 0.329683958 0.704522943 1 - 0.338924385 0.739418880 1 - 0.427674817 0.962589298 1 - 0.324169980 0.808410845 1 - 0.526486063 0.856427139 1 - 0.664857776 0.773954077 1 - 0.327675416 0.608013752 1 - 0.247589562 0.279270348 1 - 0.418514564 1.044157214 1 - 0.232314519 0.819642835 1 - 0.762040971 0.573218465 1 diff --git a/GPy/util/datasets/synth.tr b/GPy/util/datasets/synth.tr deleted file mode 100644 index b25d26e6..00000000 --- a/GPy/util/datasets/synth.tr +++ /dev/null @@ -1,251 +0,0 @@ - xs ys yc - 0.05100797 0.16086164 0 - -0.74807425 0.08904024 0 - -0.77293371 0.26317168 0 - 0.21837360 0.12706142 0 - 0.37268336 0.49656200 0 - -0.62931544 0.63202159 0 - -0.43307167 0.14479166 0 - -0.84151970 -0.19131316 0 - 0.47525648 0.22483671 0 - 0.32082976 0.32721288 0 - 0.32061253 0.33407547 0 - -0.89077472 0.41168783 0 - 0.17850119 0.44691359 0 - 0.31558002 0.38853383 0 - 0.55777224 0.47272748 0 - 0.03191877 0.01222964 0 - 0.25090585 0.30716705 0 - 0.23571547 0.22493837 0 - -0.07236203 0.33376524 0 - 0.50440241 0.08054579 0 - -0.63223351 0.44552458 0 - -0.76784656 0.23614689 0 - -0.70017557 0.21038848 0 - -0.64713491 0.15921366 0 - -0.76739248 0.09259038 0 - -0.51788734 0.03288107 0 - 0.17516644 0.34534871 0 - -0.68031190 0.47612156 0 - 0.01595199 0.32167526 0 - -0.71481078 0.51421443 0 - 0.07837946 0.32284981 0 - -0.80872251 0.47036593 0 - -0.84211234 0.09294232 0 - -0.98591577 0.48309267 0 - 0.29104081 0.34275967 0 - 0.24321541 0.51488295 0 - -0.60104419 0.05060116 0 - -1.24652451 0.45923165 0 - -0.82769016 0.36187460 0 - -0.62117301 -0.10912158 0 - -0.70584105 0.65907662 0 - 0.06718867 0.60574850 0 - 0.30505147 0.47417973 0 - 0.60788138 0.39361588 0 - -0.78937483 0.17591675 0 - -0.53123209 0.42652809 0 - 0.25202071 0.17029707 0 - -0.57880357 0.26553665 0 - -0.83176749 0.54447377 0 - -0.69859164 0.38566851 0 - -0.73642607 0.11857527 0 - -0.93496195 0.11370707 0 - 0.43959309 0.41430638 0 - -0.54690854 0.24956276 0 - -0.08405550 0.36521058 0 - 0.32211458 0.69087105 0 - 0.10764739 0.57946932 0 - -0.71864030 0.25645757 0 - -0.87877752 0.45064757 0 - -0.69846046 0.95053870 0 - 0.39757434 0.11810207 0 - -0.50451354 0.57196376 0 - 0.25023622 0.39783889 0 - 0.61709156 0.10185808 0 - 0.31832860 0.08790562 0 - -0.57453363 0.18624195 0 - 0.09761865 0.55176786 0 - 0.48449339 0.35372973 0 - 0.52400684 0.46616851 0 - -0.78138463 -0.07534713 0 - -0.49704591 0.59948077 0 - -0.96984525 0.46624927 0 - 0.43541407 0.12192386 0 - -0.67942462 0.30753942 0 - -0.62529036 0.07099046 0 - -0.02318116 0.40442601 0 - 0.23200141 0.71066846 0 - 0.09384354 0.46674396 0 - 0.14234301 0.17898711 0 - -0.61686357 0.25507763 0 - 0.23636288 0.51543839 0 - 0.38914177 0.40429568 0 - -0.95178678 -0.03772239 0 - 0.24087822 0.71948890 0 - 0.12446266 0.45178849 0 - -0.60566430 0.26906478 0 - -0.71397188 0.30871780 0 - 0.31008428 0.34675335 0 - 0.18018786 0.46204643 0 - -0.42663885 0.64723225 0 - 0.06143230 0.32491150 0 - 0.07736952 0.32183287 0 - 0.42814970 0.13445957 0 - -0.80250753 0.66878999 0 - 0.40142623 0.42516398 0 - 0.37084776 0.26407123 0 - -0.80774748 0.41485899 0 - 0.50163585 0.23934856 0 - 0.58238323 0.22842741 0 - -0.59136100 0.30230321 0 - -0.87037236 0.26941446 0 - -0.72086765 0.19676678 0 - 0.27778443 0.21792253 0 - 0.33240813 0.27349865 0 - -0.14092068 0.39247351 0 - -0.59759518 0.14790267 0 - -0.85581534 0.14513961 0 - -0.88912232 0.26896001 0 - 0.21345680 0.43611756 0 - -0.53467949 0.57901229 0 - 0.31686848 0.39705856 0 - -0.68121733 0.04209840 0 - -0.97586127 0.45964811 0 - 0.41457183 0.27141230 0 - 0.32751292 0.36780137 0 - -0.93209192 0.09362034 0 - 0.58395341 0.47147282 0 - -0.44437309 0.23010142 0 - 0.29109441 0.19365556 0 - -0.51080722 0.41496003 0 - -0.96597511 0.17931052 0 - 0.18741315 0.29747132 0 - 0.17965417 0.45175449 0 - -0.72689602 0.35728387 0 - -0.54339877 0.41012013 0 - -0.59823393 0.98701425 1 - -0.20194736 0.62101680 1 - 0.47146103 0.48221146 1 - -0.09821987 0.58755577 1 - -0.35657658 0.63709705 1 - 0.63881392 0.42112135 1 - 0.62980614 0.28146085 1 - -0.46223286 0.61661031 1 - -0.07331555 0.55821736 1 - -0.55405533 0.51253129 1 - -0.43761773 0.87811781 1 - -0.22237814 0.88850773 1 - 0.09346162 0.67310494 1 - 0.53174745 0.54372650 1 - 0.40207539 0.51638462 1 - 0.47555171 0.65056336 1 - -0.23383266 0.63642580 1 - -0.31579316 0.75031340 1 - -0.47351720 0.63854125 1 - 0.59239464 0.89256953 1 - -0.22605324 0.79789454 1 - -0.43995011 0.52099256 1 - -0.54645044 0.74577198 1 - 0.46404306 0.51065152 1 - -0.15194296 0.81218439 1 - 0.48536395 0.82018093 1 - 0.34725649 0.70813773 1 - 0.43897015 0.62817158 1 - -0.21415914 0.64363951 1 - 0.57380231 0.63713466 1 - 0.38717361 0.58578395 1 - 0.32038322 0.53529127 1 - -0.20781491 0.65132467 1 - -0.18651283 0.81754816 1 - 0.24752692 0.39081936 1 - 0.66049881 0.89919213 1 - -0.28658801 0.73375946 1 - -0.32588080 0.39865509 1 - -0.25204565 0.67358326 1 - 0.37259022 0.49785904 1 - -0.29096564 1.04372060 1 - -0.30469807 0.86858292 1 - -0.21389978 1.09317811 1 - -0.36830015 0.75639546 1 - -0.46928218 0.88775091 1 - 0.39350146 0.77975197 1 - -0.45639966 0.80523454 1 - 0.51128242 0.76606136 1 - 0.22550468 0.46451215 1 - 0.01462984 0.40190926 1 - -0.19172785 0.80943313 1 - 0.38323479 0.75601744 1 - 0.49791612 0.61334375 1 - 0.35335230 0.77324337 1 - -0.34722575 0.70177856 1 - 0.58380468 0.76357539 1 - -0.13727764 0.71246351 1 - 0.38827268 0.44977123 1 - -0.53172709 0.61934293 1 - -0.11684624 0.87851210 1 - 0.54335864 0.41174865 1 - -0.45399302 0.66512988 1 - -0.21913200 0.83484947 1 - 0.30485742 0.98028760 1 - 0.65676798 0.75766017 1 - 0.61420447 0.75039019 1 - -0.45809964 0.77968606 1 - -0.21617465 0.88626305 1 - -0.26016108 0.81008591 1 - 0.31884531 0.84517725 1 - -0.23727415 0.80178784 1 - 0.58310323 0.77709806 1 - 0.02841337 0.75792620 1 - -0.41840136 0.68041440 1 - 0.67412880 0.60245461 1 - -0.25278281 0.70526103 1 - 0.51609843 0.62092390 1 - 0.20392294 0.91641482 1 - -0.17207124 1.00884096 1 - 0.27274507 0.29346977 1 - 0.07634798 0.56222204 1 - -0.36653499 0.64831007 1 - 0.44290673 0.80087721 1 - -0.19976385 0.54295162 1 - -0.54075738 0.65293033 1 - -0.07060266 1.00296912 1 - 0.50715054 0.35045758 1 - -0.06048611 0.62982713 1 - 0.21532928 0.60260249 1 - 0.46809108 0.87182416 1 - -0.29888511 0.73669866 1 - 0.86129620 0.47289330 1 - 0.70120877 0.74572893 1 - -0.11342797 0.60067099 1 - 0.31234354 0.90756345 1 - -0.12172541 0.84112851 1 - 0.36867857 0.37052586 1 - 0.57311489 0.40949740 1 - -0.25841225 0.67192335 1 - 0.30937186 0.50823318 1 - 0.43319338 0.77016967 1 - -0.30448035 0.57820106 1 - 0.44276338 0.58023403 1 - -0.19442057 0.89876808 1 - -0.06105237 0.74184946 1 - 0.07619347 0.35386246 1 - 0.85826993 0.95819523 1 - 0.37039200 0.72342401 1 - 0.51481515 0.76203996 1 - 0.43127521 0.54259166 1 - 0.42286091 0.65242185 1 - 0.29815001 0.93453682 1 - 0.37128253 0.70089181 1 - -0.51528729 0.76473490 1 - 0.38525783 0.65528189 1 - -0.34825368 0.50529981 1 - 0.68510504 0.78067440 1 - -0.36528923 0.45703265 1 - -0.40903577 0.74230433 1 - 0.43574387 0.44689789 1 - 0.26887846 0.44559230 1 - -0.49254862 1.01443372 1 - 0.07615960 0.63795180 1 - 0.49226224 0.46876241 1 - -0.40249641 0.71301084 1 diff --git a/GPy/util/mocap.py b/GPy/util/mocap.py index 4c9fa678..3d10fc0d 100644 --- a/GPy/util/mocap.py +++ b/GPy/util/mocap.py @@ -692,84 +692,3 @@ skel = acclaim_skeleton() - -def fetch_cmu(subj_motions, base_url = 'http://mocap.cs.cmu.edu:8080/subjects', skel_store_dir = '.', motion_store_dir = '.', store_motions = True, return_motions = True, messages = True): - ''' - Download and store the skel. and motions indicated in a tuple (A,B) where A is a list of skeletons and B - the corresponding 2-D list of motions, ie B_ij is the j-th motion to download for skeleton A_i - The method can optionally store the fetched data and / or return them as arrays. - If the data are already stored, they are not fetched but just retrieved. - - e.g. - # Download the data, do not return anything - GPy.util.mocap.fetch_cmu(subj_motions = ([35],[[1,2,3]]), return_motions = False) - # Fetch and return the data in a list. Do not store them anywhere - GPy.util.mocap.fetch_cmu(subj_motions = ([35],[[1,2,3]]), return_motions = True, store_motions = False) - - In both cases above, if the data do exist in the given skel_store_dir and motion_store_dir, they are just loaded from there. - ''' - - subjectsNum = subj_motions[0] - motionsNum = subj_motions[1] - - # Convert numbers to strings - subjects = [] - motions = [list() for _ in range(len(subjectsNum))] - for i in range(len(subjectsNum)): - curSubj = str(int(subjectsNum[i])) - if subjectsNum[i] < 10: - curSubj = '0' + curSubj - subjects.append(curSubj) - for j in range(len(motionsNum[i])): - curMot = str(int(motionsNum[i][j])) - if motionsNum[i][j] < 10: - curMot = '0' + curMot - motions[i].append(curMot) - - - all_skels = [] - - assert len(subjects) == len(motions) - - if return_motions: - all_motions = [list() for _ in range(len(subjects))] - else: - all_motions = [] - - for i in range(len(subjects)): - cur_skel_suffix = '/' + subjects[i] + '/' - cur_skel_dir = skel_store_dir + cur_skel_suffix - cur_skel_file = cur_skel_dir + subjects[i] + '.asf' - cur_skel_url = base_url + cur_skel_suffix + subjects[i] + '.asf' - - if os.path.isfile(cur_skel_file): - if return_motions: - with open(cur_skel_file, 'r') as f: - cur_skel_data = f.read() - else: - if store_motions: - if not os.path.isdir(cur_skel_dir): - os.mkdir(cur_skel_dir) - if not os.path.isdir(motion_store_dir + cur_skel_suffix): - os.mkdir(motion_store_dir + cur_skel_suffix) - cur_skel_data = dat.download_resource(cur_skel_url, cur_skel_file, store_motions, messages) - - if return_motions: - all_skels.append(cur_skel_data) - - for j in range(len(motions[i])): - cur_motion_url = base_url + cur_skel_suffix + subjects[i] + '_' + motions[i][j] + '.amc' - cur_motion_file = motion_store_dir + cur_skel_suffix + subjects[i] + '_' + motions[i][j] + '.amc' - if os.path.isfile(cur_motion_file): - with open(cur_motion_file, 'r') as f: - if return_motions: - cur_motion_data = f.read() - else: - cur_motion_data = dat.download_resource(cur_motion_url, cur_motion_file, store_motions, messages) - - if return_motions: - all_motions[i].append(cur_motion_data) - - return all_skels, all_motions - -