Skip to content

Latest commit

 

History

History

random_sampling

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
This library selects a number of samples from a steam of unknown length. The lines that are selected from the
input file are randomly selected from the original input are.

The output file format is the same as the input file.

The sampling is based on lines in the input file.

Run:

    python mrSample.py --sample_size 5 input.txt > out.txt