__init__(self,
samples=None,
events=None,
mask=None,
bcshape=None,
dametric=None,
**kwargs)
(Constructor)
| source code
|
If samples and mapper arguments are not None the mapper is
used to forward-map the samples array and the result is passed
to the Dataset constructor.
- Overrides:
mapped.MappedDataset.__init__
Parameters:
- samples: ndarray
- 'Raw' input data from which boxcar-shaped samples will be extracted.
- events: sequence of Event instances
- Both an events
onset and duration are assumed to be provided
as #samples. The boxlength will be determined by the maximum
duration of all events.
- mask: boolean array
- Only features corresponding to non-zero mask elements will be
considered for the final dataset. The mask shape either has to match
the shape of the generated boxcar-samples, or the shape of the 'raw'
input samples. In the latter case, the mask is automatically
expanded to cover the whole boxcar. If no mask is provided, a
full mask will be constructed automatically.
- bcshape: tuple
- Shape of the boxcar samples generated by the embedded boxcar mapper.
If not provided this is determined automatically. However, this
required an extra mapping step.
- dametric: Metric
- Custom metric to be used by the embedded DenseArrayMapper.
- **kwargs
- All additional arguments are passed to the base class.
|