MCPcopy
hub / github.com/mne-tools/mne-python / _check_data

Method _check_data

mne/decoding/receptive_field.py:187–202  ·  view source on GitHub ↗
(self, X, y=None, reset=False)

Source from the content-addressed store, hash-verified

185 return X, y
186
187 def _check_data(self, X, y=None, reset=False):
188 if reset:
189 X, y = validate_data(
190 self,
191 X=X,
192 y=y,
193 reset=reset,
194 validate_separately=( # to take care of 3D y
195 dict(allow_nd=True, ensure_2d=False),
196 dict(allow_nd=True, ensure_2d=False),
197 ),
198 )
199 else:
200 X = validate_data(self, X=X, allow_nd=True, ensure_2d=False, reset=reset)
201 _check_n_features_3d(self, X, reset)
202 return X, y
203
204 def _validate_params(self, X):
205 if self.scoring not in _SCORERS.keys():

Callers 15

fitMethod · 0.95
predictMethod · 0.95
_check_XyMethod · 0.45
fitMethod · 0.45
transformMethod · 0.45
fitMethod · 0.45
fitMethod · 0.45
transformMethod · 0.45
inverse_transformMethod · 0.45
fitMethod · 0.45
transformMethod · 0.45
fitMethod · 0.45

Calls 2

validate_dataFunction · 0.85
_check_n_features_3dFunction · 0.85

Tested by

no test coverage detected