neuralmonkey.runners.perplexity_runner module

class neuralmonkey.runners.perplexity_runner.PerplexityExecutable(all_coders: Set[neuralmonkey.model.model_part.ModelPart], xent_op: tensorflow.python.framework.ops.Tensor) → None

Bases: neuralmonkey.runners.base_runner.Executable

__init__(all_coders: Set[neuralmonkey.model.model_part.ModelPart], xent_op: tensorflow.python.framework.ops.Tensor) → None

Initialize self. See help(type(self)) for accurate signature.

collect_results(results: List[Dict]) → None
next_to_execute() → Tuple[Set[neuralmonkey.model.model_part.ModelPart], Union[Dict, List], List[Dict[tensorflow.python.framework.ops.Tensor, Union[int, float, numpy.ndarray]]]]

Get the feedables and tensors to run.

class neuralmonkey.runners.perplexity_runner.PerplexityRunner(output_series: str, decoder: neuralmonkey.decoders.autoregressive.AutoregressiveDecoder) → None

Bases: neuralmonkey.runners.base_runner.BaseRunner

__init__(output_series: str, decoder: neuralmonkey.decoders.autoregressive.AutoregressiveDecoder) → None

Initialize self. See help(type(self)) for accurate signature.

get_executable(compute_losses: bool, summaries: bool, num_sessions: int) → neuralmonkey.runners.perplexity_runner.PerplexityExecutable
loss_names