public class RecordConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.nd4j.linalg.api.ndarray.INDArray |
toArray(Collection<? extends Writable> record)
Convert a record to an INDArray.
|
static org.nd4j.linalg.api.ndarray.INDArray |
toArray(Collection<Writable> record,
int size)
Deprecated.
|
static org.nd4j.linalg.api.ndarray.INDArray |
toMatrix(List<List<Writable>> records)
Convert a set of records in to a matrix
|
static List<Writable> |
toRecord(org.nd4j.linalg.api.ndarray.INDArray array)
Convert an ndarray to a record
|
static List<List<Writable>> |
toRecords(org.nd4j.linalg.dataset.api.DataSet dataSet)
Convert a DataSet to a matrix
|
static List<List<Writable>> |
toRecords(org.nd4j.linalg.api.ndarray.INDArray matrix)
Convert a set of records in to a matrix
|
@Deprecated public static org.nd4j.linalg.api.ndarray.INDArray toArray(Collection<Writable> record, int size)
record - the record to convertpublic static List<List<Writable>> toRecords(org.nd4j.linalg.api.ndarray.INDArray matrix)
matrix - the records ot convertpublic static org.nd4j.linalg.api.ndarray.INDArray toMatrix(List<List<Writable>> records)
records - the records ot convertpublic static org.nd4j.linalg.api.ndarray.INDArray toArray(Collection<? extends Writable> record)
record - the record to convertpublic static List<Writable> toRecord(org.nd4j.linalg.api.ndarray.INDArray array)
array - the array to convertCopyright © 2017. All rights reserved.