Welcome to pactus’ documentation!

Standing from Path Classification Tools for Unifying Strategies, pactus is a Python library that allows testing different classification methods on several trajectory datasets.

It comes with some built-in models and datasets according to the state-of-the-art in trajectory classification. However, it is implemented in an extensible way, so the users can build their own models and datasets.

Minimal example of a pactus classification task

Overview of the resources available in pactus coupled with an usage example

Note

Code from the example shown above:

from pactus import Dataset, featurizers
from pactus.models import RandomForestModel

dataset = Dataset.animals()
train, test = dataset.split(0.9)

ft = featurizers.UniversalFeaturizer()
model = RandomForestModel(featurizer=ft)
model.train(train, cross_validation=5)

evaluation = model.evaluate(test)
evaluation.show()

Indices and tables