public class Hdf5Archive extends Object
Constructor and Description |
---|
Hdf5Archive(String archiveFilename) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDataSets(String... groups)
Get list of data sets from group path.
|
List<String> |
getGroups(String... groups)
Get list of groups from group path.
|
boolean |
hasAttribute(String attributeName,
String... groups)
Check whether group path contains string attribute.
|
String |
readAttributeAsJson(String attributeName,
String... groups)
Read JSON-formatted string attribute from group path.
|
org.nd4j.linalg.api.ndarray.INDArray |
readDataSet(String datasetName,
String... groups)
Read data set as ND4J array from group path.
|
public Hdf5Archive(String archiveFilename)
public org.nd4j.linalg.api.ndarray.INDArray readDataSet(String datasetName, String... groups) throws UnsupportedKerasConfigurationException
datasetName
- Name of data setgroups
- Array of zero or more ancestor groups from root to parent.UnsupportedKerasConfigurationException
public String readAttributeAsJson(String attributeName, String... groups) throws UnsupportedKerasConfigurationException
attributeName
- Name of attributegroups
- Array of zero or more ancestor groups from root to parent.UnsupportedKerasConfigurationException
public boolean hasAttribute(String attributeName, String... groups)
attributeName
- Name of attributegroups
- Array of zero or more ancestor groups from root to parent.public List<String> getDataSets(String... groups)
groups
- Array of zero or more ancestor groups from root to parent.Copyright © 2017. All rights reserved.