Module Import alias Import alias Import alias Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If NameLoad body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Dict Str Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Num keyword TupleLoad Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Num Call NameLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad BinOpAdd ListLoad Num Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice NameLoad NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad NameLoad Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore ListLoad For NameStore Call NameLoad Num BinOpAdd NameLoad Num body Assign NameStore ListLoad NameLoad Num Num BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call NameLoad NameLoad NameLoad Slice Num Return NameLoad decorator_list
N/A N/A os N/A json N/A theano N/A theano.tensor T N/A numpy np sharedX N/A N/A value name borrow keep_on_cpu N/A None True False N/A N/A  Transform value into a shared variable of type floatX  N/A keep_on_cpu N/A N/A N/A N/A T _shared N/A N/A theano _asarray value dtype N/A N/A theano config floatX name name borrow borrow N/A N/A N/A theano shared N/A N/A theano _asarray value dtype N/A N/A theano config floatX name name borrow borrow N/A NumpyEncoder N/A N/A json JSONEncoder N/A default N/A N/A self obj N/A N/A N/A N/A isinstance obj N/A np ndarray N/A N/A N/A __ndarray__ N/A N/A obj tolist N/A N/A N/A json JSONEncoder self obj N/A N/A json_numpy_obj_hook N/A N/A dct N/A N/A N/A N/A N/A isinstance dct dict N/A __ndarray__ dct N/A N/A N/A N/A np array N/A dct N/A __ndarray__ N/A dct N/A save_dict_to_json_file N/A N/A path dictionary N/A N/A N/A  Saves a dict in a json formatted file.  N/A N/A open path w json_file N/A N/A N/A N/A json_file write N/A N/A json dumps dictionary indent 4 separators N/A , :  cls NumpyEncoder N/A load_dict_from_json_file N/A N/A path N/A N/A N/A  Loads a dict from a json formatted file.  N/A N/A open path r json_file N/A N/A N/A N/A json loads N/A N/A json_file read object_hook json_numpy_obj_hook N/A create_folder N/A N/A path N/A N/A N/A  Creates a leaf directory and all intermediate ones (thread safe).  N/A N/A N/A N/A N/A os makedirs path N/A N/A N/A N/A N/A path N/A split_dataset N/A N/A dataset proportions N/A N/A N/A  Split a dataset into many smaller datasets.

    Parameters
    ----------
    dataset : Dataset
    proportions : [numbers]
        A list of numbers giving the proportions of the dataset to be included in each
        sub-datasets. The proportions are computed according to the sum all the numbers.

    Returns
    -------
    [Datasets]
        A list of datasets which respect the given `proportions`.

     interfaces.dataset Dataset N/A indices N/A N/A np cumsum N/A N/A np ceil N/A N/A N/A N/A np array proportions N/A N/A np sum proportions N/A len dataset N/A N/A indices N/A -1 N/A len dataset N/A dsets N/A N/A N/A s f N/A zip N/A N/A 0 N/A list indices indices N/A N/A N/A s f N/A N/A int s N/A int f N/A covars N/A N/A N/A N/A dataset inputs get_value N/A s f N/A targets N/A N/A dataset has_targets N/A N/A N/A N/A dataset targets get_value N/A s f None N/A dset N/A Dataset covars targets N/A N/A N/A N/A N/A dataset name _ N/A str s to N/A str f N/A N/A dset symb_inputs N/A dataset symb_inputs N/A N/A dset symb_targets N/A dataset symb_targets N/A N/A N/A dsets append dset N/A dsets N/A kfold N/A N/A dataset k N/A N/A N/A N/A split_dataset dataset N/A N/A np ones N/A k N/A growing_sequential_kfold N/A N/A dataset k N/A N/A N/A  Builds `k` growing validations triplets.

    Parameters
    ----------
    dataset : Dataset
    k : int
        The number of triplets required as validations sets.

    Returns
    -------
    [[Dataset]]
        Returns a list of list of three datasets (training set, validation set, test set) where the length of the
        training set is growing for each further triplets.
     N/A N/A k 2 N/A N/A N/A ValueError Parameter k has to be greater than 1. N/A folds N/A N/A i N/A range 1 N/A k 1 N/A N/A proportions N/A i 1 1 N/A k i N/A N/A N/A folds append N/A N/A split_dataset dataset proportions N/A 3 N/A folds N/A