|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.data.basic.BasicNeuralDataSet
org.encog.neural.data.image.ImageNeuralDataSet
public class ImageNeuralDataSet
Store a collection of images for training with a neural network. This class collects and then downsamples images for use with a neural network. This is a memory based class, so large datasets can run out of memory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.encog.neural.data.basic.BasicNeuralDataSet |
|---|
BasicNeuralDataSet.BasicNeuralIterator |
| Field Summary | |
|---|---|
static String |
MUST_USE_IMAGE
Error message to inform the caller that only ImageNeuralData objects can be used with this collection. |
| Constructor Summary | |
|---|---|
ImageNeuralDataSet(Downsample downsampler,
boolean findBounds,
double hi,
double lo)
Construct this class with the specified downsampler. |
|
| Method Summary | |
|---|---|
void |
add(NeuralData data)
Add the specified data, must be an ImageNeuralData class. |
void |
add(NeuralData inputData,
NeuralData idealData)
Add the specified input and ideal object to the collection. |
void |
add(NeuralDataPair inputData)
Add input and expected output. |
void |
downsample(int height,
int width)
Downsample all images and generate training data. |
int |
getHeight()
|
int |
getWidth()
|
| Methods inherited from class org.encog.neural.data.basic.BasicNeuralDataSet |
|---|
clone, close, createPersistor, getCollection, getData, getDescription, getIdealSize, getInputSize, getName, getRecord, getRecordCount, isSupervised, iterator, openAdditional, setCollection, setData, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MUST_USE_IMAGE
| Constructor Detail |
|---|
public ImageNeuralDataSet(Downsample downsampler,
boolean findBounds,
double hi,
double lo)
downsampler - The downsampler to use.findBounds - Should the bounds be found and clipped.hi - The high value to normalize to.lo - The low value to normalize to.| Method Detail |
|---|
public void add(NeuralData data)
add in interface NeuralDataSetadd in class BasicNeuralDataSetdata - The data The object to add.
public void add(NeuralData inputData,
NeuralData idealData)
add in interface NeuralDataSetadd in class BasicNeuralDataSetinputData - The image to train with.idealData - The expected otuput form this image.public void add(NeuralDataPair inputData)
add in interface NeuralDataSetadd in class BasicNeuralDataSetinputData - The input data to train on.
public void downsample(int height,
int width)
height - The height to downsample to.width - the width to downsample to.public int getHeight()
public int getWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||