class_docstr: Dataset used to parallelize the transformation of the dataset via a DataLoader
class_docstr_tok: ["Dataset","used","to","parallelize","the","transformation","of","the","dataset","via","a","DataLoader"]
docstr: Extract a training set from the KITTI distance dataset
docstr_tok: ["Extract","a","training","set","from","the","KITTI","distance","dataset"]
code: def _get_training_set_ids(self, ratio: float) -> Set[int]:
      """
      Extract a training set from the KITTI distance dataset
      """
      permutation = np.random.permutation(self.nb_samples)
      threshold = int(round(self.nb_samples * ratio))
      return set(permutation[:threshold])
  
file_path: vissl/extra_scripts/datasets/create_kitti_dist_data_files.py
imports: import argparse
  import bisect
  import math
  import os
  import shutil
  from typing import Set
  import numpy
  from torch.utils.data import DataLoader
  from tqdm import tqdm
  from vissl.utils.download import download_and_extract_archive
label_desc: Use image node_id 4 for calling the KITTIDistance obj's underlying member method code with example usage: obj._get_training_set_ids(ratio) and returns: set