parameters: (data: DataSet)
docstring: Split the dataset into smaller submodels.
docstring_summary: Split the dataset into smaller submodels.
docstring_tokens: Split the dataset into smaller submodels .
function: def run_dataset(data: DataSet):
      """ Split the dataset into smaller submodels. """
  
      meta_data = MetaDataSet(data.data_path)
  
      meta_data.remove_submodels()
      data.init_reference()
      _create_image_list(data, meta_data)
  
      if meta_data.image_groups_exists():
          _read_image_groups(meta_data)
      else:
          _cluster_images(meta_data, data.config["submodel_size"])
  
      _add_cluster_neighbors(meta_data, data.config["submodel_overlap"])
      _save_clusters_geojson(meta_data)
      _save_cluster_neighbors_geojson(meta_data)
  
      meta_data.create_submodels(meta_data.load_clusters_with_neighbors())
function_tokens: def run_dataset ( data : DataSet ) : meta_data = MetaDataSet ( data . data_path ) meta_data . remove_submodels ( ) data . init_reference ( ) _create_image_list ( data , meta_data ) if meta_data . image_groups_exists ( ) : _read_image_groups ( meta_data ) else : _cluster_images ( meta_data , data . config [ "submodel_size" ] ) _add_cluster_neighbors ( meta_data , data . config [ "submodel_overlap" ] ) _save_clusters_geojson ( meta_data ) _save_cluster_neighbors_geojson ( meta_data ) meta_data . create_submodels ( meta_data . load_clusters_with_neighbors ( ) )