Commit ·
13f2b77
1
Parent(s): f5bc2fb
change features
Browse files6 unmodified lines7891011123 unmodified lines1617181920212223242526272829303132333413 unmodified lines4849505152536 unmodified lines_URLS = [f'https://huggingface.co/datasets/commaai/commaSteeringControl/resolve/main/data/{platform}.zip' for platform in PLATFORMS]_DESCRIPTION = "Steering controls dataset from cars running openpilot"class CommaSteeringControl(datasets.ArrowBasedBuilder):3 unmodified linesdescription=_DESCRIPTION,features=datasets.Features({"t": datasets.Value("float"),"latActive": datasets.Value("bool"),"steeringPressed": datasets.Value("bool"),"vEgo": datasets.Value("float"),"aEgo": datasets.Value("float"),"steeringAngleDeg": datasets.Value("float"),"steer": datasets.Value("float"),"steerFiltered": datasets.Value("float"),"roll": datasets.Value("float"),"latAccelSteeringAngle": datasets.Value("float"),"latAccelDesired": datasets.Value("float"),"latAccelLocalizer": datasets.Value("float"),"epsFwVersion": datasets.Value("string"),}))13 unmodified linesfor path in files:df = pd.read_csv(path[1])pa_table = pa.Table.from_pandas(df)yield path[0], pa_table# def _get_examples_iterable_for_split(self, split_generator):6 unmodified lines789101112133 unmodified lines1718192021222324252627282930313233343513 unmodified lines495051525354556 unmodified lines_URLS = [f'https://huggingface.co/datasets/commaai/commaSteeringControl/resolve/main/data/{platform}.zip' for platform in PLATFORMS]_DESCRIPTION = "Steering controls dataset from cars running openpilot"N = 600class CommaSteeringControl(datasets.ArrowBasedBuilder):3 unmodified linesdescription=_DESCRIPTION,features=datasets.Features({"t": datasets.Array2D(shape=(1, N), dtype='float'),"latActive": datasets.Array2D(shape=(1, N), dtype='bool'),"steeringPressed": datasets.Array2D(shape=(1, N), dtype='bool'),"vEgo": datasets.Array2D(shape=(1, N), dtype='float'),"aEgo": datasets.Array2D(shape=(1, N), dtype='float'),"steeringAngleDeg": datasets.Array2D(shape=(1, N), dtype='float'),"steer": datasets.Array2D(shape=(1, N), dtype='float'),"steerFiltered": datasets.Array2D(shape=(1, N), dtype='float'),"roll": datasets.Array2D(shape=(1, N), dtype='float'),"latAccelSteeringAngle": datasets.Array2D(shape=(1, N), dtype='float'),"latAccelDesired": datasets.Array2D(shape=(1, N), dtype='float'),"latAccelLocalizer": datasets.Array2D(shape=(1, N), dtype='float'),"epsFwVersion": datasets.Array2D(shape=(1, N), dtype='string'),}))13 unmodified linesfor path in files:df = pd.read_csv(path[1])pa_table = pa.Table.from_pandas(df)# print(pa_table)yield path[0], pa_table# def _get_examples_iterable_for_split(self, split_generator):
commaSteeringControl.py+15-13