class_docstr: Event interface defining statistics emitted by the imitation learning trainers.
class_docstr_tok: ["Event","interface","defining","statistics","emitted","by","the","imitation","learning","trainers","."]
docstr: Accuracy for discrete (categorical) subspaces.
docstr_tok: ["Accuracy","for","discrete","(","categorical",")","subspaces","."]
code: def discrete_accuracy(
      self,
      step_id: Union[str, int],
      agent_id: int,
      subspace_name: str,
      value: int,
  ):
      """Accuracy for discrete (categorical) subspaces."""
  
imports: from abc import ABC
  from typing import Union
  import numpy
  from maze.core.log_stats.event_decorators import define_stats_grouping, define_epoch_stats
label_desc: Use image node_id 5 for calling the ImitationEvents obj's underlying member method code with example usage: obj.discrete_accuracy(step_id, agent_id, subspace_name, value) without return types