public class LocalUnstructuredDataFormatter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LocalUnstructuredDataFormatter.LabelingType |
Constructor and Description |
---|
LocalUnstructuredDataFormatter(java.io.File destinationRootDir,
java.io.File rootDir,
LocalUnstructuredDataFormatter.LabelingType labelingType,
double percentTrain) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNameLabel(java.lang.String path) |
java.lang.String |
getNewDestination(java.lang.String path,
boolean train) |
int |
getNumExamplesTotal() |
int |
getNumExamplesToTrainOn() |
int |
getNumTestExamples() |
java.lang.String |
getPathLabel(java.lang.String path) |
java.io.File |
getTest() |
java.io.File |
getTrain() |
void |
rearrange() |
public LocalUnstructuredDataFormatter(java.io.File destinationRootDir, java.io.File rootDir, LocalUnstructuredDataFormatter.LabelingType labelingType, double percentTrain)
destinationRootDir
- the destination root directoryrootDir
- the root directory of the original datalabelingType
- the labeling type to use (NAME/Label)percentTrain
- the percent train to hold outpublic void rearrange()
public java.lang.String getNewDestination(java.lang.String path, boolean train)
public java.lang.String getPathLabel(java.lang.String path)
public java.lang.String getNameLabel(java.lang.String path)
public int getNumExamplesTotal()
public int getNumExamplesToTrainOn()
public int getNumTestExamples()
public java.io.File getTest()
public java.io.File getTrain()