public class ArffMetaDataLabelGenerator
extends java.lang.Object
implements org.datavec.api.io.labels.PathLabelGenerator
Constructor and Description |
---|
ArffMetaDataLabelGenerator(weka.core.Instances metaData,
java.lang.String path)
Default constructor which sets the metaData
|
Modifier and Type | Method and Description |
---|---|
org.datavec.api.writable.Writable |
getLabelForPath(java.lang.String path)
Select the label based on the path in the metadata
|
org.datavec.api.writable.Writable |
getLabelForPath(java.net.URI uri) |
java.util.Collection<java.net.URI> |
getPathURIs()
Get all paths as uris
|
boolean |
inferLabelClasses() |
public ArffMetaDataLabelGenerator(weka.core.Instances metaData, java.lang.String path)
metaData
- Meta data with mapping: filename to labelpath
- Directory pathpublic org.datavec.api.writable.Writable getLabelForPath(java.lang.String path)
getLabelForPath
in interface org.datavec.api.io.labels.PathLabelGenerator
path
- Input path to the imagepublic org.datavec.api.writable.Writable getLabelForPath(java.net.URI uri)
getLabelForPath
in interface org.datavec.api.io.labels.PathLabelGenerator
public boolean inferLabelClasses()
inferLabelClasses
in interface org.datavec.api.io.labels.PathLabelGenerator
public java.util.Collection<java.net.URI> getPathURIs()