def fetch_lfw_people(data_home=None, funneled=True, resize=0.5, min_faces_per_person=0, color=False, slice_=(slice(70, 195), slice(78, 172)), download_if_missing=True):
 (lfw_home, data_folder_path) = check_fetch_lfw(data_home=data_home, funneled=funneled, download_if_missing=download_if_missing)
 logger.info('Loading LFW people faces from %s', lfw_home)
 m = Memory(cachedir=lfw_home, compress=6, verbose=0)
 load_func = m.cache(_fetch_lfw_people)
 (faces, target, target_names) = load_func(data_folder_path, resize=resize, min_faces_per_person=min_faces_per_person, color=color, slice_=slice_)
 return Bunch(data=faces.reshape(len(faces), (-1)), images=faces, target=target, target_names=target_names, DESCR='LFW faces dataset')

def fetch_lfw_people ( data_home = None , funneled = True , resize = 0.5 , min_faces_per_person = 0 , color = False , slice_ = ( slice ( 70 , 195 ) , slice ( 78 , 172 ) ) , download_if_missing = True ) : ( lfw_home , data_folder_path ) = check_fetch_lfw ( data_home = data_home , funneled = funneled , download_if_missing = download_if_missing ) logger . info ( 'Loading LFW people faces from %s' , lfw_home ) m = Memory ( cachedir = lfw_home , compress = 6 , verbose = 0 ) load_func = m . cache ( _fetch_lfw_people ) ( faces , target , target_names ) = load_func ( data_folder_path , resize = resize , min_faces_per_person = min_faces_per_person , color = color , slice_ = slice_ ) return Bunch ( data = faces . reshape ( len ( faces ) , ( - 1 ) ) , images = faces , target = target , target_names = target_names , DESCR = 'LFW faces dataset' )
loader for the labeled faces in the wild people dataset this dataset is a collection of jpeg pictures of famous people collected on the internet .