Skip to content

Commit

Permalink
Update example 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Viera López committed Jun 8, 2023
1 parent bc35539 commit b738a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# Preprocess the dataset and split it into train and test sets
use_classes = {"car", "taxi-bus", "walk", "bike", "subway", "train"}
train, test = (
# Remove short and pourly time sampled trajectories
# Remove short and poorly time sampled trajectories
dataset.filter(lambda traj, _: len(traj) > 10 and traj.dt < 8)
# Join "taxi" and "bus" into "taxi-bus"
.map(lambda _, label: (_, "taxi-bus" if label in ("bus", "taxi") else label))
Expand Down

0 comments on commit b738a2d

Please sign in to comment.