rfho/datasets.py
def stack(*datasets):
        """
        Assuming that the datasets have same structure, stucks data and targets
        
        :param datasets: 
        :return: stacked dataset
        """
        return Dataset(data=vstack([d.data for d in datasets]),
                       target=stack_or_concat([d.target for d in datasets]),
                       sample_info=stack_or_concat([d.sample_info for d in datasets]),
                       info={k: [d.info.get(k, None) for d in datasets]
                             for k in merge_dicts(*[d.info for d in datasets])})

        Assuming that the datasets have same structure, stucks data and targets
        
        :param datasets: 
        :return: stacked dataset
        
Assuming that the datasets have same structure, stucks data and targets
Assuming that the datasets have same structure stucks data and targets
def stack(*datasets):
        return Dataset(data=vstack([d.data for d in datasets]),
                       target=stack_or_concat([d.target for d in datasets]),
                       sample_info=stack_or_concat([d.sample_info for d in datasets]),
                       info={k: [d.info.get(k, None) for d in datasets]
                             for k in merge_dicts(*[d.info for d in datasets])})
def stack ( * datasets ) : return Dataset ( data = vstack ( [ d . data for d in datasets ] ) , target = stack_or_concat ( [ d . target for d in datasets ] ) , sample_info = stack_or_concat ( [ d . sample_info for d in datasets ] ) , info = { k : [ d . info . get ( k , None ) for d in datasets ] for k in merge_dicts ( * [ d . info for d in datasets ] ) } )
Assuming that the datasets have same structure, stucks data and targets
Assuming that the datasets have same structure stucks data and targets
"""
        Assuming that the datasets have same structure, stucks data and targets
        
        :param datasets: 
        :return: stacked dataset
        """
None
datasets
None