trajminer.classification.TraClass

class trajminer.classification.TraClass

TraClass: Trajectory Classification Using Hierarchical Region-Based and Trajectory-Based Clustering.

TO-DO

Lee, J. G., Han, J., Li, X., & Gonzalez, H. (2008). TraClass: trajectory classification using hierarchical region-based and trajectory-based clustering. Proceedings of the VLDB Endowment, 1(1), 1081-1094.

__init__()

Initialize self. See help(type(self)) for accurate signature.

predict(X)

Returns the predictions for the given test data.

Xarray-like, shape (n_samples, max_length, n_features)

Input data.

predictionsarray-like, shape (n_samples, n_labels)

Predicted class for each input sample.

score(X, y)

Returns the accuracy on the given test data and labels.

Xarray-like, shape (n_samples, max_length, n_features)

Input data.

yarray-like, shape (n_samples, n_labels)

Labels of input samples.

scorefloat

Accuracy of self.predict(X) according to y.