ShapeletTreeStump#
- class ShapeletTreeStump[source]#
Bases:
objectMixin of the shapelet stumps (ShapeletTreeStumpClassifier and ShapeletTreeStumpRegressor): the ShapeletTransformer built from the parameters of the stump, the parameters of the splitter, the rule and its drawing.
The subclass defines the parameters, by deriving also from the decision tree stump of its task (
class ShapeletTreeStumpClassifier(ShapeletTreeStump, DecisionTreeStumpClassifier)).- property st#
The fitted shapelet transform.
- get_rule(columns_names=None, scaler=None, float_precision: int | None = 3)[source]#
Rule of the split, e.g.
euclidean(TS, shp) <= 1.2.- Parameters:
- Returns:
rule – See RuleTreeBaseStump.get_rule.
- Return type:
- Raises:
ValueError – If a scaler is given.