neuroglia.tensor.ResponseReducer

class neuroglia.tensor.ResponseReducer(func, dim='sample_times')[source]

Reduces a response tensor by performing a function along one dimension

Parameters:
  • func (function) – Function that will be applied to trace samples within epochs
  • dim (str, optional (default: 'sample_times')) – The dimension that will be reduced.

Notes

This estimator is stateless (besides constructor parameters), the fit method does nothing but is useful when used in a pipeline.

__init__(func, dim='sample_times')[source]

x.__init__(…) initializes x; see help(type(x)) for signature

Methods

__init__(func[, dim]) x.__init__(…) initializes x; see help(type(x)) for signature
fit(X[, y]) Do nothing and return the estimator unchanged
fit_transform(X[, y]) Fit to data, then transform it.
get_params([deep]) Get parameters for this estimator.
set_params(**params) Set the parameters of this estimator.
transform(X) Reduces a response tensor by performing a function along one dimension