#NEWLINE# def load_data( self ) : #NEWLINE# #INDENT# from GPy.util.datasets import download_url , data_path #NEWLINE# if ( not os . path . exists ( os . path . join ( data_path , self . datapath , self . filename ) ) ) : #NEWLINE# #INDENT# download_url ( self . url , self . datapath , messages = True ) #NEWLINE# if ( not os . path . exists ( os . path . join ( data_path , self . datapath , self . filename ) ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# data = np . loadtxt ( os . path . join ( data_path , self . datapath , data . filename ) , skiprows = 1 , delimiter = ';' ) #NEWLINE# self . data = data #NEWLINE# data_train = data [ : 1000 , : ( - 1 ) ] #NEWLINE# label_train = data [ : 1000 , ( - 1 ) : ] #NEWLINE# self . train = ( data_train , label_train ) #NEWLINE# data_test = data [ 1000 : , : ( - 1 ) ] #NEWLINE# label_test = data [ 1000 : , ( - 1 ) : ] #NEWLINE# self . test = ( data_test , label_test ) #NEWLINE# return True