Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict Str Str Str Str Str Num Num Num Num Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad TupleLoad Str Num Num Str body If CompareNotIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad BinOpAdd Str BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assert BoolOpAnd CompareGtE NameLoad Num CompareLt NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Str If CompareEq NameLoad Num body Assign NameStore Call NameLoad BinOpAdd NameLoad Str orelse If CompareEq NameLoad Num body Assign NameStore Call NameLoad BinOpAdd NameLoad Str orelse Raise Call NameLoad Str If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num body Assign NameStore BinOpAdd CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index NameLoad Num CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index NameLoad Num orelse Assign NameStore CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assert CompareGt Call AttributeLoad NameLoad attr Num If NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpPow NameLoad Num If BoolOpAnd NameLoad NameLoad body AugAssignSub SubscriptStore NameLoad Slice Num AugAssignDiv SubscriptStore NameLoad Slice Num orelse If NameLoad body AugAssignSub SubscriptStore NameLoad Slice Num orelse If NameLoad body AugAssignDiv SubscriptStore NameLoad Slice Num If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareNotEq NameLoad Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Num orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assert UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad NameLoad decorator_list decorator_list
N/A N/A 
.. todo::

    WRITEME
 N/A numpy np pylearn2.datasets dense_design_matrix pylearn2.utils.serial load pylearn2.utils.rng make_np_rng pylearn2.utils contains_nan TFD N/A N/A dense_design_matrix DenseDesignMatrix N/A N/A 
    Pylearn2 wrapper for the Toronto Face Dataset.
    http://aclab.ca/users/josh/TFD.html

    Parameters
    ----------
    which_set : str
        Dataset to load. One of ['train','valid','test','unlabeled'].
    fold : int in {0,1,2,3,4}
        TFD contains 5 official folds for train, valid and test.
    image_size : int in [48,96]
        Load smaller or larger dataset variant.
    example_range : array_like or None, optional
        Load only examples in range [example_range[0]:example_range[1]].
    center : bool, optional
        Move data from range [0., 255.] to [-127.5, 127.5]
        False by default.
    scale : bool, optional
        Move data from range [0., 255.] to [0., 1.], or
        from range [-127.5, 127.5] to [-1., 1.] if center is True
        False by default.
    shuffle : WRITEME
    rng : WRITEME
    seed : WRITEME
    preprocessor : WRITEME
    axes : WRITEME
     N/A mapper N/A unlabeled train valid test full_train 0 1 2 3 4 __init__ N/A N/A self which_set fold image_size example_range center scale shuffle rng seed preprocessor axes N/A 0 48 None False False False None 132987 None N/A b 0 1 c N/A N/A N/A which_set N/A N/A N/A self mapper keys N/A N/A N/A ValueError N/A Unrecognized which_set value: %s. Valid values N/A are %s. N/A N/A str which_set N/A str N/A N/A N/A self mapper keys N/A N/A N/A fold 0 N/A fold 5 N/A N/A self args N/A locals N/A path ${PYLEARN2_DATA_PATH}/faces/TFD/ N/A N/A image_size 48 N/A N/A data N/A load N/A path TFD_48x48.mat N/A N/A N/A image_size 96 N/A N/A data N/A load N/A path TFD_96x96.mat N/A N/A N/A ValueError image_size should be either 48 or 96. N/A N/A N/A N/A self mapper N/A which_set 4 N/A N/A set_indices N/A N/A N/A N/A data N/A folds N/A N/A N/A fold 1 N/A N/A N/A data N/A folds N/A N/A N/A fold 2 N/A N/A set_indices N/A N/A N/A data N/A folds N/A N/A N/A fold N/A N/A self mapper N/A which_set N/A N/A N/A N/A set_indices sum 0 N/A example_range N/A N/A ex_range N/A slice N/A example_range N/A 0 N/A example_range N/A 1 N/A N/A ex_range N/A slice None N/A data_x N/A N/A data N/A images N/A set_indices N/A data_x N/A N/A N/A np cast N/A float32 data_x N/A data_x N/A data_x N/A ex_range N/A data_x N/A N/A data_x reshape N/A N/A data_x shape N/A 0 N/A image_size 2 N/A N/A center scale N/A N/A N/A data_x N/A 127.5 N/A N/A data_x N/A 127.5 N/A N/A center N/A N/A N/A data_x N/A 127.5 N/A N/A scale N/A N/A N/A data_x N/A 255.0 N/A shuffle N/A N/A rng N/A make_np_rng rng seed which_method permutation N/A rand_idx N/A N/A rng permutation N/A len data_x N/A data_x N/A data_x N/A rand_idx N/A N/A which_set unlabeled N/A N/A data_y N/A N/A data N/A labs_ex N/A set_indices N/A data_y N/A N/A data_y N/A ex_range 1 N/A data_y_identity N/A N/A data N/A labs_id N/A set_indices N/A data_y_identity N/A data_y_identity N/A ex_range N/A shuffle N/A N/A data_y N/A data_y N/A rand_idx N/A data_y_identity N/A data_y_identity N/A rand_idx N/A y_labels 7 N/A N/A data_y None N/A data_y_identity None N/A y_labels None N/A view_converter N/A N/A dense_design_matrix DefaultViewConverter N/A image_size image_size 1 axes N/A N/A N/A N/A super TFD self __init__ X data_x y data_y y_labels y_labels view_converter view_converter N/A N/A N/A contains_nan N/A self X N/A N/A self y_identity data_y_identity N/A N/A self axes axes N/A N/A preprocessor None N/A N/A N/A N/A preprocessor apply self N/A get_test_set N/A N/A self fold N/A None N/A N/A 
        Return the test set
         N/A args N/A N/A N/A N/A args update N/A self args N/A N/A args N/A self N/A N/A args N/A which_set test N/A N/A fold None N/A N/A N/A args N/A fold fold N/A N/A TFD args N/A N/A