#NEWLINE# def isomap_faces( num_samples = 698 , data_set = 'isomap_face_data' ) : #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 , 'face_data.mat' ) ) #NEWLINE# Y = mat_data [ 'images' ] [ : , 0 : num_samples ] . transpose ( ) #NEWLINE# return data_details_return ( { #NEWLINE# #INDENT# 'Y' : Y , #NEWLINE# 'poses' : Y [ 'poses' ] , #NEWLINE# 'lights' : mat_data [ 'lights' ] , #NEWLINE# 'info' : ( ( 'The first ' + str ( num_samples ) ) + ' points from the face data of Tennenbaum, de Silva and Langford (2001).' ) , #NEWLINE# #UNINDENT# } , data_set )