datadings.commands.merge module

usage: merge.py [-h] [-s {concat,random}] [–shuffle]

infile [infile …] outfile

Merge two or more dataset files.

Available strategies:

  • concat: Concat input files in the order they are given.

  • random: Choose input file to read next sample from randomly, with probability depending on the relative size of datasets.

Positional arguments

infile Files to merge. outfile Output file.

options:
-h, --help

show this help message and exit

-s {concat,random}, –strategy {concat,random}

Merging strategy to use.

--shuffle

Shuffle each dataset before merging.

datadings.commands.merge.cumsum(it)[source]
datadings.commands.merge.entry()[source]
datadings.commands.merge.main()[source]
datadings.commands.merge.merge_concat(infiles, outfile, shuffle)[source]
datadings.commands.merge.merge_random(infiles, outfile, shuffle=False)[source]
datadings.commands.merge.select_set(ranges)[source]
datadings.commands.merge.setup_ranges(lens)[source]