aligner.multiprocessing.get_average_posteriors(i, nnet_dir, prev_egs_dir, config, num_jobs)[source]

Multiprocessing function that gets average posterior for purposes of computing priors (for nnet)


for more details on the Kaldi binary this runs.

Also see for the original bash script that this function was based on.

i : int

Number of the current iteration

nnet_dir : str

Directory of nnet training

prev_egs_dir : str

Directory for training examples from the last iteration

config : NnetBasicConfig

Configuration object for training

num_jobs : int

The number of processes to use in calculation