i6_core.cart.estimate
¶
- class i6_core.cart.estimate.AccumulateCartStatisticsJob(*args, **kwargs)¶
Goes over all training data and for each triphone state accumulates the values and squared values of the given feature flow
- Parameters:
crp (rasr.crp.CommonRasrParameters) –
alignment_flow (rasr.flow.FlowNetwork) –
keep_accumulators (bool) –
extra_config_accumulate (rasr.config.RasrConfig) –
extra_post_config_accumulate (rasr.config.RasrConfig) –
extra_config_merge (rasr.config.RasrConfig) –
extra_post_config_merge (rasr.config.RasrConfig) –
- accumulate(task_id)¶
- cleanup_before_run(cmd, retry, task_id, *args)¶
- classmethod create_accumulate_config(crp, alignment_flow, extra_config_accumulate, extra_post_config_accumulate, **kwargs)¶
- Parameters:
crp (rasr.crp.CommonRasrParameters) –
alignment_flow (rasr.flow.FlowNetwork) –
extra_config_accumulate (rasr.config.RasrConfig) –
extra_post_config_accumulate (rasr.config.RasrConfig) –
kwargs –
- Returns:
- Return type:
- create_files()¶
- classmethod create_merge_config(crp, extra_config_merge, extra_post_config_merge, **kwargs)¶
- Parameters:
crp (rasr.crp.CommonRasrParameters) –
extra_config_merge (rasr.config.RasrConfig) –
extra_post_config_merge (rasr.config.RasrConfig) –
kwargs –
- Returns:
- Return type:
- classmethod hash(kwargs)¶
- Parameters:
parsed_args (dict[str]) –
- Returns:
hash for job given the arguments
- Return type:
str
- merge()¶
- tasks()¶
- Returns:
yields Task’s
- Return type:
list[sisyphus.task.Task]
- class i6_core.cart.estimate.EstimateCartJob(*args, **kwargs)¶
This job estimates a phonetic decision tree. Given a set of accumulated (squared) feature values a single gaussian model is estimated per triphone state. Then iteratively states are merged according to the provided questions such that the log-likelihood of the resulting models is minimized. Finally states which have a low number of occurrences are merged into the closest cluster.
- Parameters:
crp (rasr.crp.CommonRasrParameters) –
questions (Path|BasicCartQuestions|str) – Either a Path to a questions.xml file, a question object or simply a str
cart_examples (Path) –
variance_clipping (float) –
generate_cluster_file (bool) –
extra_config (rasr.config.RasrConfig) –
extra_post_config (rasr.config.RasrConfig) –
- cleanup_before_run(*args)¶
- classmethod create_config(crp, questions, cart_examples, variance_clipping, generate_cluster_file, extra_config, extra_post_config, **kwargs)¶
- Parameters:
crp (rasr.crp.CommonRasrParameters) –
questions (Path|BasicCartQuestions|str) –
cart_examples (Path) –
variance_clipping (float) –
generate_cluster_file (bool) –
extra_config (rasr.config.RasrConfig) –
extra_post_config (rasr.config.RasrConfig) –
- create_files()¶
- classmethod hash(kwargs)¶
- Parameters:
parsed_args (dict[str]) –
- Returns:
hash for job given the arguments
- Return type:
str
- run()¶
- tasks()¶
- Returns:
yields Task’s
- Return type:
list[sisyphus.task.Task]