brainbox.modeling.utils

Functions

full_rcos

neglog

raised_cosine

Classes

SequentialSelector

raised_cosine(duration, nbases, binfun)[source]
full_rcos(duration, nbases, binfun, n_before=1)[source]
neglog(weights, x, y)[source]
class SequentialSelector(model, n_features_to_select=None, direction='forward', scoring=None, train=None, test=None)[source]

Bases: object

fit(train_idx=None, full_scores=False, progress=False)[source]

Fit the sequential feature selection

Parameters
  • train_idx (array-like) – indices of trials to use in the training set. If the model passed to the SFS instance did not already have training indices, this must be specified. If it did have indices, then this will override those.

  • full_scores (bool, optional) – Whether to store the full set of submodel scores at each step. Produces additional attributes .full_scores_train_ and .full_scores_test_

  • progress (bool, optional) – Whether to show a progress bar, by default False