Convert to bundle shape.
Convert to bundle shape.
bundle shape
Get the bundle protobuf shape.
Get the bundle protobuf shape.
bundle protobuf shape
* Get an optional input by the port name.
* Get an optional input by the port name.
* @param port name of the port * @return optional socket for the named port
* Get an optional output by the port name.
* Get an optional output by the port name.
* @param port name of the port * @return optional socket for the named port
* Get an input by the port name.
* Get an input by the port name.
* @param port name of port * @return socket for named port
input sockets lookup by port
input sockets
* Get an output by the port name.
* Get an output by the port name.
* @param port name of port * @return socket for named port
output sockets lookup by port
output sockets
Get the standard input socket.
Get the standard input socket.
The standard input socket is on port "input".
standard input socket
Get the standard output socket.
Get the standard output socket.
The standard output socket is on port "output".
standard output socket
* Add an input socket to the shape.
* Add an input socket to the shape.
* @param port port of input socket * @param name name of input socket * @return copy of the shape with input socket added
* Add an output socket to the shape.
* Add an output socket to the shape.
* @param port port of output socket * @param name name of output socket * @return copy of the shape with output socket added
Add standard input/output sockets to the shape.
Add standard input/output sockets to the shape.
This is the same as calling NodeShape#withStandardInput and NodeShape#withStandardOutput.
name of the input socket
name of the output socket
copy of the shape with standard input/output sockets added
Add standard input socket to the shape.
Add standard input socket to the shape.
name of standard input socket
copy of the shape with standard input socket added
Add standard output socket to the shape.
Add standard output socket to the shape.
name of standard output socket
copy of the shape with standard output socket added
Class for holding the input fields and output fields of a Node. The shape also holds information for connecting the input/output fields to the underlying ML model.
A NodeShape contains input and output sockets. Sockets map field data to certain functionality within a Model. For instance, say we want to run a "label" field through a string indexer and have the result output to the field "label_name". We could wire up the node like so:
Or more concisely: