File size: 537 Bytes
2180de8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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)
|