Count the total number of parameters for a KerasLayer.
Count the total number of parameters for a KerasLayer. Return a tuple (total params #, trainable params #)
Return the layer summary information as an array of String, in the order of: Layer (type), OutputShape, Param #
Together with the layer summary of a node, also return the name of the node(s) that it is connected to.
Together with the layer summary of a node, also return the name of the node(s) that it is connected to. If there are multiple connected nodes, they will be combined by ", "
Print the summary of a node in a line.
Print the summary of a node in a line. Return a tuple (total params #, trainable params #) of this node.
Print a row containing several fields.
Print a row containing several fields.
The fields to be printed out.
The total length of a printed line.
The maximum absolute length proportion(%) of each field. Default is Array(.33, .55, .67, 1), meaning that the first field will occupy up to 33% of lineLength, the second field will occupy up to (55-33)% of lineLength, the third field will occupy up to (67-55)% of lineLength, the fourth field will occupy the remaining line (100-67)%. If the field has a larger length, the remaining part will be trimmed. If the field has a smaller length, the remaining part will be white spaces.
Whether to add a split line after printing one row.
The character to compose the split line.
Print a split line that repeats the 'char' for 'lineLength' times.
Convert a Shape to String format using 'None' to indicate batch, which is the same as Keras.
Convert a Shape to String format using 'None' to indicate batch, which is the same as Keras. Used to print out the shape.
For example, (None, 10) will be returned for Shape(-1, 10), a SingleShape. (None, 10) (None, 8) will be returned for a MultiShape which consists of Shape(-1, 10), Shape(-1, 8).
classes: RDD of 1-based label.
classes: RDD of 1-based label. If zeroBasedLabel is true, convert to RDD of 0-based label. Otherwise, just return classes itself.