Souce code of the paper "FedST: Secure Federated Shapelet Transformation for (Interpretable) Time Series Classification".
from FedST import ContractedFederatedShapeletTransform
fedst = ContractedFederatedShapeletTransform(time_contract_in_mins=60)
fedst.fit(X, y)
X_transform = fedst.transform(X)
X_transform_locally = fedst.transform_locally(X)