trajminer.preprocessing
.filter_label_size¶
-
trajminer.preprocessing.
filter_label_size
(data, min_size, max_size, inplace=True, n_jobs=1)¶ Removes trajectories corresponding to sets of labels that do not meet size criteria.
- data
trajminer.TrajectoryData
The dataset to be filtered.
- min_sizeint
The minimum number of trajectories required of a certain label to keep it in the dataset. If None, then no minimum size is enforced.
- max_sizeint
The maximum number of trajectories required of a certain label to keep it in the dataset. If None, then no maximum size is enforced.
- inplacebool (default=True)
If True modifies the current object, otherwise returns a new object.
- n_jobsint (default=1)
The number of parallel jobs.
- dataset
trajminer.TrajectoryData
The filtered dataset. If inplace=True, then returns the modified current object.
- data