Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body Import alias Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Import alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad body Expr Str Assign NameStore Call NameLoad keyword NameLoad If UnaryOpNot Call NameLoad NameLoad body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Delete NameDel orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr AugAssignDiv NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Num attr Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListComp BinOpFloorDiv NameLoad Num comprehension NameStore Call NameLoad Num If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Return Call NameLoad keyword Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num keyword NameLoad keyword NameLoad keyword NameLoad decorator_list
N/A N/A Modified Olivetti faces dataset.

The original database was available from (now defunct)

    http://www.uk.research.att.com/facedatabase.html

The version retrieved here comes in MATLAB format from the personal
web page of Sam Roweis:

    http://www.cs.nyu.edu/~roweis/

There are ten different images of each of 40 distinct subjects. For some
subjects, the images were taken at different times, varying the lighting,
facial expressions (open / closed eyes, smiling / not smiling) and facial
details (glasses / no glasses). All the images were taken against a dark
homogeneous background with the subjects in an upright, frontal position (with
tolerance for some side movement).

The original dataset consisted of 92 x 112, while the Roweis version
consists of 64x64 images.
 io BytesIO os.path exists os makedirs N/A N/A N/A urllib2 N/A urlopen N/A urllib2 urlopen N/A N/A N/A ImportError N/A N/A urllib.request N/A urlopen N/A N/A urllib request urlopen N/A numpy np scipy.io.matlab loadmat base get_data_home Bunch base _pkl_filepath utils check_random_state externals joblib N/A DATA_URL http://cs.nyu.edu/~roweis/data/olivettifaces.mat N/A TARGET_FILENAME olivetti.pkz N/A MODULE_DOCS __doc__ fetch_olivetti_faces N/A N/A data_home shuffle random_state download_if_missing N/A None False 0 True N/A N/A Loader for the Olivetti faces data-set from AT&T.

    Read more in the :ref:`User Guide <olivetti_faces>`.

    Parameters
    ----------
    data_home : optional, default: None
        Specify another download and cache folder for the datasets. By default
        all scikit learn data is stored in '~/scikit_learn_data' subfolders.

    shuffle : boolean, optional
        If True the order of the dataset is shuffled to avoid having
        images of the same person grouped.

    download_if_missing: optional, True by default
        If False, raise a IOError if the data is not locally available
        instead of trying to download the data from the source site.

    random_state : optional, integer or RandomState object
        The seed or the random number generator used to shuffle the
        data.

    Returns
    -------
    An object with the following attributes:

    data : numpy array of shape (400, 4096)
        Each row corresponds to a ravelled face image of original size 64 x 64 pixels.

    images : numpy array of shape (400, 64, 64)
        Each row is a face image corresponding to one of the 40 subjects of the dataset.

    target : numpy array of shape (400, )
        Labels associated to each face image. Those labels are ranging from
        0-39 and correspond to the Subject IDs.

    DESCR : string
        Description of the modified Olivetti Faces Dataset.

    Notes
    ------

    This dataset consists of 10 pictures each of 40 individuals. The original
    database was available from (now defunct)

        http://www.uk.research.att.com/facedatabase.html

    The version retrieved here comes in MATLAB format from the personal
    web page of Sam Roweis:

        http://www.cs.nyu.edu/~roweis/

     N/A data_home N/A get_data_home data_home data_home N/A N/A N/A exists data_home N/A N/A N/A makedirs data_home N/A filepath N/A _pkl_filepath data_home TARGET_FILENAME N/A N/A N/A exists filepath N/A N/A N/A downloading Olivetti faces from %s to %s N/A DATA_URL data_home N/A fhandle N/A urlopen DATA_URL N/A buf N/A BytesIO N/A N/A fhandle read N/A mfile N/A loadmat buf N/A faces N/A N/A N/A N/A mfile N/A faces T copy N/A N/A N/A joblib dump faces filepath compress 6 N/A mfile N/A N/A faces N/A N/A joblib load filepath N/A faces N/A N/A np float32 faces N/A faces N/A faces N/A N/A faces min N/A faces N/A N/A faces max N/A faces N/A N/A N/A N/A faces reshape N/A 400 64 64 transpose 0 2 1 N/A target N/A N/A np array N/A N/A i 10 N/A i N/A range 400 N/A shuffle N/A N/A random_state N/A check_random_state random_state N/A order N/A N/A random_state permutation N/A len faces N/A faces N/A faces N/A order N/A target N/A target N/A order N/A N/A Bunch data N/A N/A faces reshape N/A len faces -1 images faces target target DESCR MODULE_DOCS N/A