#NEWLINE# def swiss_roll( num_samples = 3000 , data_set = 'swiss_roll' ) : #NEWLINE# #INDENT# if ( not data_available ( data_set ) ) : #NEWLINE# #INDENT# download_data ( data_set ) #NEWLINE# #UNINDENT# mat_data = scipy . io . loadmat ( os . path . join ( data_path , data_set , 'swiss_roll_data.mat' ) ) #NEWLINE# Y = mat_data [ 'X_data' ] [ : , 0 : num_samples ] . transpose ( ) #NEWLINE# return data_details_return ( { #NEWLINE# #INDENT# 'Y' : Y , #NEWLINE# 'X' : mat_data [ 'X_data' ] , #NEWLINE# 'info' : ( ( 'The first ' + str ( num_samples ) ) + ' points from the swiss roll data of Tennenbaum, de Silva and Langford (2001).' ) , #NEWLINE# #UNINDENT# } , data_set )