org.encog.ml.data.temporal
public class TemporalMLDataSet extends BasicNeuralDataSet implements Serializable
BasicMLDataSet.BasicMLIterator
Modifier and Type | Field and Description |
---|---|
static String |
ADD_NOT_SUPPORTED
Error message: adds are not supported.
|
Constructor and Description |
---|
TemporalMLDataSet(int inputWindowSize,
int predictWindowSize)
Construct a dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MLData data)
Adding directly is not supported.
|
void |
add(MLData inputData,
MLData idealData)
Adding directly is not supported.
|
void |
add(MLDataPair inputData)
Adding directly is not supported.
|
void |
addDescription(TemporalDataDescription desc)
Add a data description.
|
int |
calculateActualSetSize()
Calculate the actual set size, this is the number of training set entries
that will be generated.
|
void |
calculateNeuronCounts()
Calculate how many input and output neurons will be needed for the
current data.
|
int |
calculatePointsInRange()
Calculate how many points are in the high and low range.
|
int |
calculateStartIndex()
Calculate the index to start at.
|
void |
clear()
Clear the entire dataset.
|
TemporalPoint |
createPoint(Date when)
Create a temporal point from a time.
|
TemporalPoint |
createPoint(int sequence)
Create a temporal data point using a sequence number.
|
void |
generate()
Generate the training sets.
|
BasicNeuralData |
generateInputNeuralData(int index)
Generate input neural data for the specified index.
|
BasicNeuralData |
generateOutputNeuralData(int index)
Generate neural ideal data for the specified index.
|
List<TemporalDataDescription> |
getDescriptions() |
int |
getDesiredSetSize() |
int |
getHighSequence() |
int |
getInputNeuronCount() |
int |
getInputWindowSize() |
int |
getLowSequence() |
int |
getOutputNeuronCount() |
List<TemporalPoint> |
getPoints() |
int |
getPredictWindowSize() |
int |
getSequenceFromDate(Date when)
Create a sequence number from a time.
|
TimeUnit |
getSequenceGrandularity() |
Date |
getStartingPoint() |
boolean |
isPointInRange(TemporalPoint point)
Is the specified point within the range.
|
void |
setDesiredSetSize(int desiredSetSize) |
void |
setHighSequence(int highSequence) |
void |
setInputWindowSize(int inputWindowSize) |
void |
setLowSequence(int lowSequence) |
void |
setPredictWindowSize(int predictWindowSize) |
void |
setSequenceGrandularity(TimeUnit sequenceGrandularity) |
void |
setStartingPoint(Date startingPoint) |
void |
sortPoints()
Sort the points.
|
clone, close, get, getData, getIdealSize, getInputSize, getRecord, getRecordCount, isSupervised, iterator, openAdditional, setData, size, toList
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, get, getIdealSize, getInputSize, getRecord, getRecordCount, isSupervised, openAdditional, size
public static final String ADD_NOT_SUPPORTED
public TemporalMLDataSet(int inputWindowSize, int predictWindowSize)
inputWindowSize
- What is the input window size.predictWindowSize
- What is the prediction window size.public void add(MLData data)
add
in interface MLDataSet
add
in class BasicMLDataSet
data
- Not used.public void add(MLData inputData, MLData idealData)
add
in interface MLDataSet
add
in class BasicMLDataSet
inputData
- Not used.idealData
- Not used.public void add(MLDataPair inputData)
add
in interface MLDataSet
add
in class BasicMLDataSet
inputData
- Not used.public void addDescription(TemporalDataDescription desc)
desc
- The data description to add.public int calculateActualSetSize()
public void calculateNeuronCounts()
public int calculatePointsInRange()
public int calculateStartIndex()
public void clear()
public TemporalPoint createPoint(Date when)
when
- The time that this point should be created at.public TemporalPoint createPoint(int sequence)
sequence
- The sequence number.public void generate()
public BasicNeuralData generateInputNeuralData(int index)
index
- The index to generate neural data for.public BasicNeuralData generateOutputNeuralData(int index)
index
- The index to generate for.public List<TemporalDataDescription> getDescriptions()
public int getDesiredSetSize()
public int getHighSequence()
public int getInputNeuronCount()
public int getInputWindowSize()
public int getLowSequence()
public int getOutputNeuronCount()
public List<TemporalPoint> getPoints()
public int getPredictWindowSize()
public int getSequenceFromDate(Date when)
when
- The date to generate the sequence number for.public TimeUnit getSequenceGrandularity()
public Date getStartingPoint()
public boolean isPointInRange(TemporalPoint point)
point
- The point to consider.public void setDesiredSetSize(int desiredSetSize)
desiredSetSize
- the desiredSetSize to setpublic void setHighSequence(int highSequence)
highSequence
- the highSequence to setpublic void setInputWindowSize(int inputWindowSize)
inputWindowSize
- the inputWindowSize to setpublic void setLowSequence(int lowSequence)
lowSequence
- the lowSequence to setpublic void setPredictWindowSize(int predictWindowSize)
predictWindowSize
- the predictWindowSize to setpublic void setSequenceGrandularity(TimeUnit sequenceGrandularity)
sequenceGrandularity
- the sequenceGrandularity to setpublic void setStartingPoint(Date startingPoint)
startingPoint
- the startingPoint to setpublic void sortPoints()
Copyright © 2014. All Rights Reserved.