public static List<Writable> toRecord(INDArray array) {
        List<Writable> writables = new ArrayList<>();
        writables.add(new NDArrayWritable(array));
        return writables;
    }
public static List < Writable > toRecord ( INDArray array ) { List < Writable > writables = new ArrayList < > ( ) ; writables . add ( new NDArrayWritable ( array ) ) ; return writables ; }
Convert an ndarray to a record
@param array the array to convert
@return the record