Module Expr Str Import alias identifier ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num If SubscriptLoad NameLoad Index Str body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad If BoolOpAnd SubscriptLoad NameLoad Index Str CompareGt AttributeLoad NameLoad attr Num body Raise Call NameLoad Str orelse Assign NameStore Call NameLoad NameLoad NameLoad Str For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body If NameLoad body Print Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Str For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body If NameLoad body Print Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad keyword BinOpAdd NameLoad Num keyword BinOpAdd NameLoad Num orelse Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad keyword BinOpAdd NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str TryExcept body If CompareIs NameLoad NameLoad body Return SubscriptLoad NameLoad Index BinOpMod Str NameLoad orelse Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index BinOpMod Str NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index BinOpMod Str TupleLoad NameLoad NameLoad Return TupleLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Print NameLoad Print NameLoad Print Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Str decorator_list
N/A N/A 
Functions relative to cross-validation and folds iterator.
 N/A numpy np dynamic dynamic_import _construct_folds_iterator N/A N/A y cfg key N/A N/A N/A Dynamically construct a fold iterator from the configuration (cfg, key).

    Instantiate a folds iterator depending on the cross-validation
    configuration. If the folds iterator is statified, it should take the
    targets array y, else it should take only ne number of samples.

    Notes
    -----
    See sklearn.cross_validation for more information about how a
    folds iterator should work

    Parameters
    ----------
    y : array, shape (n_samples, n_targets)
        targets array
    cfg : dict,
        configuration dict for cross-validation.
    key : str,
        key in cfg that provide a key "foldsIterator" and a list
        [class, dict] where 'class' is a string representing the
        folds iterator object to import and 'dict' are the keywords
        arguments.
     N/A cv_cfg N/A cfg N/A key N/A dyn_cla N/A dynamic_import N/A N/A cv_cfg N/A foldsIterator N/A 0 N/A kwargs N/A N/A cv_cfg N/A foldsIterator N/A 1 N/A N/A cfg N/A stratified N/A N/A fg N/A dyn_cla y kwargs N/A N/A fg N/A dyn_cla N/A N/A y shape N/A 0 kwargs N/A fg N/A make_folds N/A N/A y cfg verbose N/A False N/A N/A Constructs the folds from crossval configuration

    Parameters
    ----------
    y : array, shape (n_samples, n_targets)
        targets array
    cfg : dict,
        configuration dict for cross-validation.
    verbose : boolean, optional
        verbose mode
     N/A folds N/A N/A keys N/A N/A N/A N/A cfg N/A stratified N/A N/A y ndim 1 N/A N/A N/A TypeError Stratified and multi-target are incompatible. N/A N/A fg N/A _construct_folds_iterator y cfg crossval_score N/A N/A i N/A train test N/A enumerate fg N/A N/A verbose N/A N/A N/A N/A Outer Fold {}:
{}
{}
--- format i N/A N/A np sort N/A y N/A train N/A N/A np sort N/A y N/A test N/A N/A N/A folds append N/A train test N/A N/A N/A keys append N/A %d i N/A N/A cfg N/A modelSelection N/A N/A yi N/A y N/A train N/A fgi N/A _construct_folds_iterator yi cfg gridSearch N/A N/A k N/A itrain itest N/A enumerate fgi N/A N/A verbose N/A N/A N/A N/A Inner Fold {}:
{}
{}
--- format k N/A N/A np sort N/A yi N/A itrain N/A N/A np sort N/A yi N/A itest N/A N/A N/A folds append N/A itrain itest N/A N/A N/A keys append N/A %d_%d N/A i k N/A N/A cfg N/A modelSelection N/A N/A folds_dic N/A dict N/A zip keys folds n_inner N/A k 1 n_outer N/A i 1 N/A N/A folds_dic N/A dict N/A zip keys folds n_outer N/A i 1 N/A folds_dic N/A get_fold N/A N/A folds outer inner N/A None N/A N/A Get a given folds from the folds dict (see make_folds)

    Parameters
    ----------
    folds : dict,
        dictionnary with all the folds.
    outer : int,
        ID of the outer fold.
    inner : int, optional (default=None)
        ID of the inner fold.
     N/A N/A N/A N/A inner None N/A N/A N/A folds N/A N/A %d outer N/A N/A outer_ind N/A N/A folds N/A N/A %d outer N/A 0 N/A inner_ind N/A folds N/A N/A %d_%d N/A outer inner N/A N/A N/A outer_ind N/A N/A inner_ind N/A 0 N/A outer_ind N/A N/A inner_ind N/A 1 N/A N/A N/A KeyError N/A N/A N/A KeyError N/A N/A unexpected fold: outer={}, inner={} format outer inner N/A print_fold N/A N/A train_index test_index N/A N/A N/A Pretty printer for a couple of train/test folds.

     N/A train_index N/A test_index N/A N/A N/A train/test sizes: {}/{} format N/A train_index size N/A test_index size N/A ======= N/A