Dataset¶
- sekupy.utils.dataset.get_ds_data(ds, target_attribute='targets')[source]¶
This function simpy returns X and y for scikit-learn analyses starting from a pymvpa dataset.
- Parameters:
ds (dataset
sekupy.dataset.base.Dataset) – The dataset in pymvpa formattarget_attribute (str, optional) –
- The sample attribute to be used to extract labels
(the default is ‘targets’, which [default_description])
- Returns:
A tuple with the X data matrix (samples x features) and the y array of labels.
- Return type:
X, y