| Interface | Description |
|---|---|
| PathLabelGenerator |
PathLabelGenerator: interface to infer the label of a file directly from the path of a file
Example: /negative/file17.csv -> class "0"; /positive/file116.csv -> class "1" etc. Though note that the output is a writable, hence it need not be numerical. |
| PathMultiLabelGenerator |
PathMultiLabelGenerator: interface to infer the label(s) of a file directly from the URI/path
Similar to PathLabelGenerator, with 2 main differences:(a) Can be used for multi-label, multi-class classification (i.e., return *multiple* NDArray writables, for use in networks with multiple output layers) (b) Does Regarding (b) above, this means that the implementations of PathMultiLabelGenerator typically need to (for classification use cases) do one of two things (either will work, though down-stream usage of these arrays can vary slightly): (a) Perform label to integer index assignment (i.e., return an IntWritable(0) for A, if you have 3 classes {A,B,C}) (b) Create a one-hot NDArrayWritable. |
| Class | Description |
|---|---|
| ParentPathLabelGenerator |
Returns as label the base name of the parent file of the path (the directory).
|
| PatternPathLabelGenerator |
Returns a label derived from the base name of the path.
|
Copyright © 2019. All rights reserved.