Completed
Push — master ( 3cec9a...160784 )
by Bart
24s
created

fuel.downloaders.fill_subparser()   A

Complexity

Conditions 1

Size

Total Lines 21

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 21
rs 9.3142
1
from fuel.downloaders.base import default_downloader
2
3
4
def fill_subparser(subparser):
5
    """Set up a subparser to download the adult dataset file.
6
7
    The Adult dataset file `adult.data` and `adult.test` is downloaded from
8
    the UCI Machine Learning Repository [UCIADULT].
9
10
    .. [UCIADULT] https://archive.ics.uci.edu/ml/datasets/Adult
11
12
    Parameters
13
    ----------
14
    subparser : :class:`argparse.ArgumentParser`
15
        Subparser handling the adult command.
16
17
    """
18
    subparser.set_defaults(
19
        urls=['https://archive.ics.uci.edu/ml/machine-learning-databases/'
20
              'adult/adult.data',
21
              'https://archive.ics.uci.edu/ml/machine-learning-databases/'
22
              'adult/adult.test'],
23
        filenames=['adult.data', 'adult.test'])
24
    return default_downloader
25