This is a function that must be implemented by all DS objects. This method should not be called directly but instead it is used internally by the cross-validator (CV) object.




The datasource object.


This method returns a data frame where each row corresponds to a data from one time point on a single trial.

  • train_labels: The labels that should be used when training the classifier.

  • test_labels: The labels that should be used when the classifier is tested. Note, this can be different than the training labels when remapping the data using the ds_generalization() data source.

  • time_bin: The time bin where the data point came from.

  • site_XXXX: A set of columns with neural activity from each site.

  • CV_XX: A set of columns that indicate for each cross-validation split whether a data point belongs to the training or test set.