class_docstr: Meter to calculate top-k video-level accuracy for single/multi label
     video classification task.
  
  Video-level accuarcy is computed by averaging clip-level predictions and
  compare the reslt with video-level groundtruth label.
class_docstr_tok: ["Meter","to","calculate","top-k","video-level","accuracy","for","single\/multi","label","video","classification","task",".","Video-level","accuarcy","is","computed","by","averaging","clip-level","predictions","and","compare","the","reslt","with","video-level","groundtruth","label","."]
docstr: Instantiates a VideoAccuracyMeter from a configuration.
  
  Args:
      config: A configuration for a VideoAccuracyMeter.
          See :func:`__init__` for parameters expected in the config.
  
  Returns:
      A VideoAccuracyMeter instance.
docstr_tok: ["Instantiates","a","VideoAccuracyMeter","from","a","configuration",".","Args",":","config",":","A","configuration","for","a","VideoAccuracyMeter",".","See",":","func",":","`","__init__","`","for","parameters","expected","in","the","config",".","Returns",":","A","VideoAccuracyMeter","instance","."]
code: def from_config(cls, config: Dict[str, Any]) -> "VideoAccuracyMeter":
      """Instantiates a VideoAccuracyMeter from a configuration.
  
      Args:
          config: A configuration for a VideoAccuracyMeter.
              See :func:`__init__` for parameters expected in the config.
  
      Returns:
          A VideoAccuracyMeter instance.
      """
      return cls(
          topk=config["topk"],
          clips_per_video_train=config.get("clips_per_video_train", 1),
          clips_per_video_test=config["clips_per_video_test"],
      )
  
file_path: ClassyVision/classy_vision/meters/video_accuracy_meter.py
imports: from typing import Any, Dict, Sequence
  from classy_vision.generic.util import is_pos_int
  from classy_vision.meters.accuracy_meter import AccuracyMeter
  from .None import register_meter
  from .video_meter import VideoMeter
label_desc: Use image node_id 2 for calling the VideoAccuracyMeter obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls