public class MLDataCompiler
extends java.lang.Object
Constructor and Description |
---|
MLDataCompiler(java.io.File positiveSamplesFolder,
java.io.File negativeSamplesFolder)
Constructs a new data compiler, using 1.0 as the positive label value and 0.0 as the negative samples folder.
|
MLDataCompiler(java.io.File positiveSamplesFolder,
java.io.File negativeSamplesFolder,
double posLabel,
double negLabel)
Constructs a new data compiler.
|
Modifier and Type | Method and Description |
---|---|
CrossValidation.Data |
readData()
Reads the positive and negative samples and compiles the resultant data.
|
CrossValidation.Data |
readData(DatasetOperation op)
Reads the positive and negative samples and compiles the resultant data.
|
static java.util.List<IODataset> |
readFolder(java.io.File folder)
Reads all the Datasets from a given file folder.
|
public MLDataCompiler(java.io.File positiveSamplesFolder, java.io.File negativeSamplesFolder, double posLabel, double negLabel)
positiveSamplesFolder
- File folder containing positive (e.g. is a flaw) samples.negativeSamplesFolder
- File folder containing negative (e.g. is not a flaw) samples.posLabel
- value assigned to positive samplesnegLabel
- value assigned to negative samplespublic MLDataCompiler(java.io.File positiveSamplesFolder, java.io.File negativeSamplesFolder)
positiveSamplesFolder
- positive samples foldernegativeSamplesFolder
- negative samples folderpublic CrossValidation.Data readData(DatasetOperation op) throws java.lang.Exception
op
- operation to perform on data during compilation processjava.lang.Exception
- if an error occurs reading folders, etc.public CrossValidation.Data readData() throws java.lang.Exception
java.lang.Exception
- if an error occurs reading folders, etc.public static java.util.List<IODataset> readFolder(java.io.File folder) throws java.lang.Exception
folder
- folder to loadjava.lang.Exception
- if an I/O error occurs