Module Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If UnaryOpNot CompareEq Call NameLoad Call NameLoad Call AttributeLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num attr Num body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore ListComp SubscriptLoad Call AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad For NameStore ListLoad Str Str Str body If CompareIn NameLoad NameLoad body If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad AugAssignDiv SubscriptStore NameLoad ExtSlice Slice Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad TryExcept body ImportFrom alias handlers ExceptHandler body ImportFrom alias FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num orelse Assign NameStore Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Return TupleLoad NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpSub Call AttributeLoad NameLoad attr NameLoad keyword Num Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad GeneratorExp SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Index NameLoad Slice Return TupleLoad Call AttributeLoad NameLoad attr BinOpMult SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num NameLoad keyword Num NameLoad decorator_list
N/A N/A numpy np utils logger verbose fixes Counter parallel parallel_func N/A pick_types pick_info compute_ems N/A N/A epochs conditions picks n_jobs verbose N/A None None 1 None N/A N/A Compute event-matched spatial filter on epochs

    This version operates on the entire time course. No time window needs to
    be specified. The result is a spatial filter at each time point and a
    corresponding time course. Intuitively, the result gives the similarity
    between the filter at each time point and the data vector (sensors) at
    that time point.

    References
    ----------
    [1] Aaron Schurger, Sebastien Marti, and Stanislas Dehaene, "Reducing
        multi-sensor data to a single time course that reveals experimental
        effects", BMC Neuroscience 2013, 14:122

    Parameters
    ----------
    epochs : instance of mne.Epochs
        The epochs.
    conditions : list of str | None
        If a list of strings, strings must match the
        epochs.event_id's key as well as the number of conditions supported
        by the objective_function. If None keys in epochs.event_id are used.
    picks : array-like of int | None
        Channels to be included. If None only good data channels are used.
        Defaults to None
    n_jobs : int
        Number of jobs to run in parallel.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).
        Defaults to self.verbose.

    Returns
    -------
    surrogate_trials : ndarray, shape (trials, n_trials, n_time_points)
        The trial surrogates.
    mean_spatial_filter : ndarray, shape (n_channels, n_times)
        The set of spatial filters.
    conditions : ndarray, shape (n_epochs,)
        The conditions used. Values correspond to original event ids.
     N/A N/A N/A logger info ...computing surrogate time series. This can take some time N/A N/A picks None N/A N/A picks N/A pick_types N/A epochs info meg True eeg True N/A N/A N/A N/A len N/A set N/A N/A N/A Counter N/A N/A epochs events N/A N/A N/A 2 values 1 N/A N/A N/A ValueError The same number of epochs is required by this function. Please consider `epochs.equalize_event_counts` N/A N/A conditions None N/A N/A conditions N/A N/A N/A epochs event_id keys N/A epochs N/A N/A epochs copy N/A N/A epochs N/A epochs N/A conditions N/A N/A N/A epochs drop_bad N/A N/A N/A len conditions 2 N/A N/A N/A ValueError N/A Currently this function expects exactly 2 conditions but you gave me %i N/A len conditions N/A ev N/A N/A epochs events N/A N/A N/A 2 N/A conditions N/A list N/A sorted conditions N/A cond_idx N/A N/A N/A N/A np where N/A ev N/A N/A epochs event_id N/A k N/A 0 N/A k conditions N/A info N/A pick_info N/A epochs info picks N/A data N/A N/A N/A epochs get_data N/A N/A N/A picks N/A ch_type N/A mag grad eeg N/A N/A N/A ch_type epochs N/A N/A N/A ch_type eeg N/A N/A this_picks N/A pick_types info meg False eeg True N/A N/A this_picks N/A pick_types info meg ch_type eeg False N/A N/A data N/A N/A N/A this_picks N/A N/A np std N/A data N/A N/A N/A this_picks N/A N/A sklearn.model_selection LeaveOneOut N/A N/A N/A sklearn.cross_validation LeaveOneOut _iter_cv N/A N/A n N/A N/A N/A N/A hasattr LeaveOneOut split N/A N/A cv N/A LeaveOneOut N/A N/A N/A cv split N/A N/A np zeros N/A n 1 N/A N/A cv N/A LeaveOneOut N/A len data N/A cv N/A N/A N/A parallel p_func _ N/A parallel_func _run_ems n_jobs n_jobs N/A out N/A parallel N/A N/A p_func _ems_diff data cond_idx train test N/A N/A train test N/A _iter_cv N/A len data N/A N/A surrogate_trials spatial_filter N/A zip out N/A surrogate_trials N/A N/A np array surrogate_trials N/A spatial_filter N/A N/A np mean spatial_filter axis 0 N/A N/A surrogate_trials spatial_filter N/A N/A epochs events N/A N/A N/A 2 N/A verbose _ems_diff N/A N/A data0 data1 N/A N/A N/A default diff objective function N/A N/A N/A N/A np mean data0 axis 0 N/A N/A np mean data1 axis 0 N/A _run_ems N/A N/A objective_function data cond_idx train test N/A N/A N/A d N/A objective_function N/A N/A data N/A N/A N/A np intersect1d c train N/A c cond_idx N/A d N/A N/A N/A np sqrt N/A N/A np sum N/A d 2 axis 0 N/A N/A None N/A N/A N/A N/A N/A np sum N/A N/A data N/A N/A test N/A 0 d axis 0 d N/A