class_docstr: BuilderConfig for NSynth Dataset.
docstr: Constructs a NsynthConfig.
  
  Args:
    gansynth_subset: bool, whether to use the subset of the dataset introduced
      in the ICLR 2019 GANSynth paper (Engel, et al. 2018). This subset uses
      acoustic-only instrument sources and limits the pitches to the interval
      [24, 84]. The train and test splits are also modified so that
      instruments (but not specific notes) overlap between them. See
      https://arxiv.org/abs/1902.08710 for more details.
    estimate_f0_and_loudness: bool, whether to estimate fundamental frequency
      (F0) and loudness for the audio (at 250 Hz) and add them to the set of
      features.
    **kwargs: keyword arguments forwarded to super.
docstr_tok: ["Constructs","a","NsynthConfig",".","Args",":","gansynth_subset",":","bool",",","whether","to","use","the","subset","of","the","dataset","introduced","in","the","ICLR","2019","GANSynth","paper","(","Engel",",","et","al",".","2018",")",".","This","subset","uses","acoustic-only","instrument","sources","and","limits","the","pitches","to","the","interval","[","24",",","84","]",".","The","train","and","test","splits","are","also","modified","so","that","instruments","(","but","not","specific","notes",")","overlap","between","them",".","See","https",":","\/\/arxiv.org\/abs\/1902.08710","for","more","details",".","estimate_f0_and_loudness",":","bool",",","whether","to","estimate","fundamental","frequency","(","F0",")","and","loudness","for","the","audio","(","at","250","Hz",")","and","add","them","to","the","set","of","features",".","*","*","kwargs",":","keyword","arguments","forwarded","to","super","."]
code: def __init__(
      self,
      gansynth_subset=False,
      estimate_f0_and_loudness=False,
      **kwargs,
  ):
      """Constructs a NsynthConfig.
  
      Args:
        gansynth_subset: bool, whether to use the subset of the dataset introduced
          in the ICLR 2019 GANSynth paper (Engel, et al. 2018). This subset uses
          acoustic-only instrument sources and limits the pitches to the interval
          [24, 84]. The train and test splits are also modified so that
          instruments (but not specific notes) overlap between them. See
          https://arxiv.org/abs/1902.08710 for more details.
        estimate_f0_and_loudness: bool, whether to estimate fundamental frequency
          (F0) and loudness for the audio (at 250 Hz) and add them to the set of
          features.
        **kwargs: keyword arguments forwarded to super.
      """
      name_parts = []
      if gansynth_subset:
          name_parts.append("gansynth_subset")
      else:
          name_parts.append("full")
      if estimate_f0_and_loudness:
          name_parts.append("f0_and_loudness")
      v230 = tfds.core.Version("2.3.0")
      v231 = tfds.core.Version("2.3.1")
      v232 = tfds.core.Version("2.3.2")
      v233 = tfds.core.Version("2.3.3")
      super(NsynthConfig, self).__init__(
          name=".".join(name_parts),
          version=v233,
          supported_versions=[v232, v231, v230],
          release_notes={
              "2.3.3": (
                  "F0 computed with fix in CREPE wave normalization "
                  "(https://github.com/marl/crepe/issues/49)."
              ),
              "2.3.2": "Use Audio feature.",
              "2.3.1": "F0 computed with normalization fix in CREPE.",
              "2.3.0": "New `loudness_db` feature in decibels (unormalized).",
          },
          **kwargs,
      )  # pytype: disable=wrong-arg-types  # gen-stub-imports
      self.gansynth_subset = gansynth_subset
      self.estimate_f0_and_loudness = estimate_f0_and_loudness
  
file_path: datasets/tensorflow_datasets/datasets/nsynth/nsynth_dataset_builder.py
imports: from __future__ import annotations
  import csv
  import os
  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 NsynthConfig object from inherited base classes: tfds.core with example: obj = NsynthConfig(gansynth_subset, estimate_f0_and_loudness)