class LabelNode: public Node
Nodes of this class have an associated label, to use in labeled graphs. The label is used as local input value in recurrent neural networks.
Attributes:
std::vector<double> label
- The label
Methods:
virtual ostream &writeTo(ostream &o)
- Streaming helper: writes the label to the stream, as a length-preceded sequence of numbers.
istream &readFrom(istream &i)
- Streaming helper: reads the label from the stream
static istream& dummyRead(istream &i)
- Streaming helper: reads a number from the stream, and then that many numbers, discarding all of them.