Classifier
FreshPRINCE
Fresh Pipeline with RotatIoN forest Classifier.
Quickstart
python
from sktime.classification.feature_based import FreshPRINCE
estimator = FreshPRINCE(default_fc_parameters='comprehensive', n_estimators=200, save_transformed_data=False, verbose=0, n_jobs=1, chunksize=None, random_state=None)Parameters(6)
- default_fc_parametersstr, default=”comprehensive”
- Set of TSFresh features to be extracted, options are “minimal”, “efficient” or “comprehensive”.
- n_estimatorsint, default=200
- Number of estimators for the RotationForest ensemble.
- verboseint, default=0
- Level of output printed to the console (for information only)
- n_jobsint, default=1
The number of jobs to run in parallel for both
fitandpredict.-1means using all processors.- chunksizeint or None, default=None
- Number of series processed in each parallel TSFresh job, should be optimised for efficient parallelisation.
- random_stateint or None, default=None
- Seed for random, integer.
Examples
>>> from sktime.classification.feature_based import FreshPRINCE
>>> from sktime.datasets import load_unit_test
>>> X_train, y_train = load_unit_test (split = "train", return_X_y = True)
>>> X_test, y_test = load_unit_test (split = "test", return_X_y = True)
>>> clf = FreshPRINCE (
... default_fc_parameters = "comprehensive",
... n_estimators = 200,
... save_transformed_data = False,
... verbose = 0,
... n_jobs = 1,
... )
>>> clf. fit (X_train, y_train) FreshPRINCE(
... )
>>> y_pred = clf. predict (X_test)References
- [1 ] Christ, Maximilian, et al. “Time series feature extraction on basis of scalable hypothesis tests (tsfresh-a python package).” Neurocomputing 307 (2018): 72-77. https://www.sciencedirect.com/science/article/pii/S0925231218304843