Ejemplo n.º 1
0
def autogen_dataset_with_test():
    """Dummy dataset from file with auto-generated val and given test"""
    return TabularDataset.autogen(
        'tests/data/dummy_tabular/train.csv',
        test_path='tests/data/dummy_tabular_test/test.csv',
        seed=42,
        sep=',')
Ejemplo n.º 2
0
def autogen_dataset_ratios():
    """Dummy dataset from file with auto-generated val and test with
    different ratios
    """
    return TabularDataset.autogen('tests/data/dummy_tabular/train.csv',
                                  seed=42,
                                  sep=',',
                                  test_ratio=0.5,
                                  val_ratio=0.5)
Ejemplo n.º 3
0
def autogen_dataset_ratios_with_test():
    """Dummy dataset from file with auto-generated val and given test
    with different ratios
    """
    return TabularDataset.autogen('tests/data/dummy_tabular/train.csv',
                                  test_path='tests/data/dummy_tabular_test/test.csv',
                                  seed=42,
                                  sep=',',
                                  test_ratio=0.5,  # no effect
                                  val_ratio=0.5)
Ejemplo n.º 4
0
def autogen_dataset_dir_with_test():
    """Dummy dataset from dir with auto-generated val and given test"""
    return TabularDataset.autogen('tests/data/dummy_tabular',
                                  test_path='tests/data/dummy_tabular_test',
                                  seed=42,
                                  sep=',')
Ejemplo n.º 5
0
def autogen_dataset_dir():
    """Dummy dataset from directory with auto-generated val and test"""
    return TabularDataset.autogen('tests/data/dummy_tabular',
                                  seed=42,
                                  sep=',')
Ejemplo n.º 6
0
def autogen_dataset():
    """Dummy dataset from file with auto-generated val and test"""
    return TabularDataset.autogen('tests/data/dummy_tabular/train.csv',
                                  seed=42,
                                  sep=',')