Package org.datavec.api.io.labels
Interface PathLabelGenerator
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ParentPathLabelGenerator,PatternPathLabelGenerator
public interface PathLabelGenerator extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WritablegetLabelForPath(String path)WritablegetLabelForPath(URI uri)booleaninferLabelClasses()If true: infer the set of possible label classes, and convert these to integer indexes.
-
-
-
Method Detail
-
inferLabelClasses
boolean inferLabelClasses()
If true: infer the set of possible label classes, and convert these to integer indexes. If when true, the returned Writables should be text writables.
For regression use cases (or PathLabelGenerator classification instances that do their own label -> integer assignment), this should return false.- Returns:
- whether label classes should be inferred
-
-