class_docstr: BuilderConfig for Groove Dataset.
class_docstr_tok: ["BuilderConfig","for","Groove","Dataset","."]
docstr: Constructs a GrooveConfig.
  
  Args:
    split_bars: int, number of bars to include per example using a sliding
      window across the raw data, or will not split if None.
    include_audio: bool, whether to include audio in the examples. If True,
      examples with missing audio will be excluded.
    audio_rate: int, sample rate to use for audio.
    **kwargs: keyword arguments forwarded to super.
docstr_tok: ["Constructs","a","GrooveConfig",".","Args",":","split_bars",":","int",",","number","of","bars","to","include","per","example","using","a","sliding","window","across","the","raw","data",",","or","will","not","split","if","None",".","include_audio",":","bool",",","whether","to","include","audio","in","the","examples",".","If","True",",","examples","with","missing","audio","will","be","excluded",".","audio_rate",":","int",",","sample","rate","to","use","for","audio",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super","."]
code: def __init__(
      self,
      split_bars=None,
      include_audio=True,
      audio_rate=16000,
      **kwargs,
  ):
      """Constructs a GrooveConfig.
  
      Args:
        split_bars: int, number of bars to include per example using a sliding
          window across the raw data, or will not split if None.
        include_audio: bool, whether to include audio in the examples. If True,
          examples with missing audio will be excluded.
        audio_rate: int, sample rate to use for audio.
        **kwargs: keyword arguments forwarded to super.
      """
      name_parts = [("%dbar" % split_bars) if split_bars else "full"]
      if include_audio:
          name_parts.append("%dhz" % audio_rate)
      else:
          name_parts.append("midionly")
  
      super(GrooveConfig, self).__init__(
          name="-".join(name_parts),
          version=tfds.core.Version("2.0.1"),
          **kwargs,
      )
      self.split_bars = split_bars
      self.include_audio = include_audio
      self.audio_rate = audio_rate
  
file_path: datasets/tensorflow_datasets/datasets/groove/groove_dataset_builder.py
imports: from __future__ import annotations
  import collections
  import copy
  import csv
  import io
  import os
  from absl import logging
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 1 to create a new GrooveConfig object from inherited base classes: tfds.core with example: obj = GrooveConfig(split_bars, include_audio, audio_rate)