rfho/datasets.py
def from_list(list_of_datasets):
        """
        Generates a `Datasets` object from a list.

        :param list_of_datasets: list containing from one to three dataset
        :return:
        """
        train, valid, test = None, None, None
        train = list_of_datasets[0]
        if len(list_of_datasets) > 3:
            print('There are more then 3 Datasets here...')
            return list_of_datasets
        if len(list_of_datasets) > 1:
            test = list_of_datasets[-1]
            if len(list_of_datasets) == 3:
                valid = list_of_datasets[1]
        return Datasets(train, valid, test)

        Generates a `Datasets` object from a list.

        :param list_of_datasets: list containing from one to three dataset
        :return:
        
Generates a `Datasets` object from a list.
Generates a ` Datasets ` object from a list .
def from_list(list_of_datasets):
        train, valid, test = None, None, None
        train = list_of_datasets[0]
        if len(list_of_datasets) > 3:
            print('There are more then 3 Datasets here...')
            return list_of_datasets
        if len(list_of_datasets) > 1:
            test = list_of_datasets[-1]
            if len(list_of_datasets) == 3:
                valid = list_of_datasets[1]
        return Datasets(train, valid, test)
def from_list ( list_of_datasets ) : train , valid , test = None , None , None train = list_of_datasets [ 0 ] if len ( list_of_datasets ) > 3 : print ( 'There are more then 3 Datasets here...' ) return list_of_datasets if len ( list_of_datasets ) > 1 : test = list_of_datasets [ - 1 ] if len ( list_of_datasets ) == 3 : valid = list_of_datasets [ 1 ] return Datasets ( train , valid , test )
Generates a `Datasets` object from a list.
Generates a ` Datasets ` object from a list .
"""
        Generates a `Datasets` object from a list.

        :param list_of_datasets: list containing from one to three dataset
        :return:
        """
None
list_of_datasets
list containing from one to three dataset
list containing from one to three dataset