MCPcopy Create free account
hub / github.com/SpatialVLA/SpatialVLA / pprint_data_mixture

Function pprint_data_mixture

data/utils/data_utils.py:193–207  ·  view source on GitHub ↗
(
    dataset_kwargs_list: List[Dict[str, Any]], dataset_weights: List[int]
)

Source from the content-addressed store, hash-verified

191
192# === RLDS Dataset Initialization Utilities ===
193def pprint_data_mixture(
194 dataset_kwargs_list: List[Dict[str, Any]], dataset_weights: List[int]
195) -> None:
196 print(
197 "\n######################################################################################"
198 )
199 print(
200 f"# Loading the following {len(dataset_kwargs_list)} datasets (incl. sampling weight):{'': >24} #"
201 )
202 for dataset_kwargs, weight in zip(dataset_kwargs_list, dataset_weights):
203 pad = 80 - len(dataset_kwargs["name"])
204 print(f"# {dataset_kwargs['name']}: {weight:=>{pad}f} #")
205 print(
206 "######################################################################################\n"
207 )
208
209
210def cartesian_to_spherical(x, y, z):

Callers 1

dataset_statisticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected