public class RecordConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.nd4j.linalg.api.ndarray.INDArray |
toArray(java.util.Collection<Writable> record)
Convert a record to an ndarray
|
static org.nd4j.linalg.api.ndarray.INDArray |
toArray(java.util.Collection<Writable> record,
int size)
Convert a record to an ndarray
|
static org.nd4j.linalg.api.ndarray.INDArray |
toMatrix(java.util.List<java.util.List<Writable>> records)
Convert a set of records in to a matrix
|
static java.util.List<Writable> |
toRecord(org.nd4j.linalg.api.ndarray.INDArray array)
Convert an ndarray to a record
|
static java.util.List<java.util.List<Writable>> |
toRecords(org.nd4j.linalg.dataset.api.DataSet dataSet)
Convert a DataSet to a matrix
|
static java.util.List<java.util.List<Writable>> |
toRecords(org.nd4j.linalg.api.ndarray.INDArray matrix)
Convert a set of records in to a matrix
|
public static org.nd4j.linalg.api.ndarray.INDArray toArray(java.util.Collection<Writable> record, int size)
record
- the record to convertpublic static java.util.List<java.util.List<Writable>> toRecords(org.nd4j.linalg.api.ndarray.INDArray matrix)
matrix
- the records ot convertpublic static org.nd4j.linalg.api.ndarray.INDArray toMatrix(java.util.List<java.util.List<Writable>> records)
records
- the records ot convertpublic static org.nd4j.linalg.api.ndarray.INDArray toArray(java.util.Collection<Writable> record)
record
- the record to convertpublic static java.util.List<Writable> toRecord(org.nd4j.linalg.api.ndarray.INDArray array)
array
- the array to convertpublic static java.util.List<java.util.List<Writable>> toRecords(org.nd4j.linalg.dataset.api.DataSet dataSet)
dataSet
- the DataSet to convert