fuzzyclust.models.HingeNode#
- class fuzzyclust.models.HingeNode(theta, kind, depth, n_samples, sse, rmse, condition, node_id=0, left=None, right=None)[source]#
Bases:
objectOne node of a
HingingHyperplaneTree.- Attributes:
- theta
ndarrayofshape(2,n_features+ 1)or(1,n_features+ 1) The two hyperplanes \(\boldsymbol\theta_1,\boldsymbol\theta_2\) of the hinge (a single plane for a linear leaf).
- kind{“max”, “min”, “linear”}
Hinge function \(\max\) / \(\min\) of the two planes, or a plain linear model.
- depth, n_samples, sse, rmse, condition
nodestatistics conditionis the hinge-identification quality \(\varrho\) (1 = the hinge split agrees perfectly with the fuzzy memberships).- left, right
HingeNodeorNone Children;
leftreceives the samples where plane 1 is active.
- theta