kgp.tree / Input

Input

class Input : Terminal

A terminal node that represents a feature value.

The features a referenced by their index into the feature set.

NOTE: Input nodes should not be directly evaluated, as evaluation results in an infinite value. Instead, the index should be used to find the appropriate feature from a feature set.

Constructors

<init> Input(index: Int)

A terminal node that represents a feature value.

Properties

index val index: Int

The index of the feature this node represents in a flat feature set.

Inherited Properties

arity val arity: Int

The number of arguments that this node expects.