Convert a record to an INDArray. May contain a mix of Writables and row vector NDArrayWritables.
record - the record to convert
public static INDArray toMinibatchArray(@NonNull
java.util.List<? extends Writable> l)
Convert a record to an INDArray, for use in minibatch training. That is, for an input record of length N, the output
array has dimension 0 of size N (i.e., suitable for minibatch training in DL4J, for example).
The input list of writables must all be the same type (i.e., all NDArrayWritables or all non-array writables such
as DoubleWritable etc).
Note that for NDArrayWritables, they must have leading dimension 1, and all other dimensions must match.
For example, row vectors are valid NDArrayWritables, as are 3d (usually time series) with shape [1, x, y], or
4d (usually images) with shape [1, x, y, z] where (x,y,z) are the same for all inputs