humanoid-dataset-3 / dataset.py
Kannypam3421's picture
Create dataset.py
2180de8 verified
raw
history blame contribute delete
537 Bytes
from datasets import Dataset
import pandas as pd
def load_dataset():
data = {
"imu_acceleration": [
[0.01, 0.02, 9.81],
[0.02, 0.01, 9.79]
],
"imu_gyroscope": [
[0.001, 0.002, 0.003],
[0.002, 0.001, 0.004]
],
"foot_force": [
[120.5, 118.3],
[121.0, 119.1]
],
"motion_state": [
"standing",
"standing"
]
}
df = pd.DataFrame(data)
return Dataset.from_pandas(df)