Module Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier TryExcept body ImportFrom alias identifier handlers ExceptHandler body ImportFrom alias identifier Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str If CompareLtE Call NameLoad NameLoad Num body Return TupleLoad NameLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return TupleLoad ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad decorator_list Assign NameStore Dict Str TupleLoad NameLoad ListLoad Str Str
N/A N/A os N/A numpy np six string_types N/A data_management N/A time_series tslib N/A N/A sklearn.model_selection train_test_split sklearn_split N/A N/A N/A sklearn.cross_validation train_test_split sklearn_split N/A __all__ N/A transform_ts_files train_test_split transform_ts_files N/A N/A time_series transform_type N/A N/A N/A Apply some transformation to a list of time series and save outputs.

    Some transformations will affect each time series individually, whereas
    some will split the input data into multiple outputs; in either case the
    time series are returned as a list of lists.

    Parameters
    ----------
    time_series : list of TimeSeries objects
        Input time series to be transformed
    transform_type : str
        Name of transformation to be applied to input time series. Possible
        values are the keys of `TRANSFORM_INFO_DICT`.

    Returns
    -------
    list of lists of TimeSeries objects
     N/A N/A transform labels N/A TRANSFORMS_INFO_DICT N/A transform_type N/A output_ts_lists N/A transform time_series N/A N/A N/A len labels N/A len output_ts_lists N/A N/A N/A ValueError Number of output time series groups does not match the number of labels provided by `TRANSFORMS_INFO_DICT`. N/A output_ts_lists N/A train_test_split N/A N/A time_series test_size train_size random_state N/A 0.5 0.5 None N/A N/A Splits input time series into training and test sets.

    Samples are stratified based on `TimeSeries.target` if it is a string
    (i.e. a class label). See the `stratify` parameter of
    `sklearn.model_selection` for details.

    Parameters
    ----------
    time_series : list of TimeSeries objects
        Input time series to be split
    test_size : float, optional
        Fraction of data to be included in the test set; defaults to 50/50.
    training_size : float, optional
        Fraction of data to be included in the training set; defaults to 50/50.
    random_state : int or RandomState, optional
        Random number generator seed or state for shuffling of indices.

    Returns
    -------
        tuple (list of training set time series, list of test set time series)
     N/A N/A N/A len time_series 1 N/A N/A N/A time_series N/A N/A inds N/A N/A np arange N/A len time_series N/A N/A isinstance N/A N/A time_series N/A 0 target string_types N/A N/A stratify N/A N/A np array N/A N/A ts target N/A ts time_series N/A N/A stratify None N/A N/A train test N/A sklearn_split inds test_size test_size train_size train_size random_state random_state stratify stratify N/A N/A N/A N/A time_series N/A i N/A i train N/A N/A time_series N/A j N/A j test N/A N/A TRANSFORMS_INFO_DICT N/A Train/Test Split N/A train_test_split N/A train test