public class LocalUnstructuredDataFormatter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalUnstructuredDataFormatter.LabelingType |
| Constructor and Description |
|---|
LocalUnstructuredDataFormatter(File destinationRootDir,
File rootDir,
LocalUnstructuredDataFormatter.LabelingType labelingType,
double percentTrain) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNameLabel(String path) |
String |
getNewDestination(String path,
boolean train) |
int |
getNumExamplesTotal() |
int |
getNumExamplesToTrainOn() |
int |
getNumTestExamples() |
String |
getPathLabel(String path) |
File |
getTest() |
File |
getTrain() |
void |
rearrange() |
public LocalUnstructuredDataFormatter(File destinationRootDir, 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 outCopyright © 2017. All rights reserved.