org.encog.ensemble.data
Class EnsembleDataSet
- java.lang.Object
-
- org.encog.ensemble.data.EnsembleDataSet
-
- All Implemented Interfaces:
- java.lang.Iterable<MLDataPair>, MLDataSet
public class EnsembleDataSet extends java.lang.Object implements MLDataSet
-
-
Constructor Summary
Constructors Constructor and Description EnsembleDataSet(int inputSize, int idealSize)EnsembleDataSet(MLDataSet mlds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(MLData data1)Add a object to the dataset.voidadd(MLData inputData, MLData idealData)Add a set of input and ideal data to the dataset.voidadd(MLDataPair inputData)Add a an object to the dataset.voidclose()Close this datasource and release any resources obtained by it, including any iterators created.MLDataPairget(int index)intgetIdealSize()intgetInputSize()voidgetRecord(long index, MLDataPair pair)Read an individual record, specified by index, in random order.longgetRecordCount()Determine the total number of records in the set.booleanisSupervised()java.util.Iterator<MLDataPair>iterator()MLDataSetopenAdditional()Opens an additional instance of this dataset.intsize()
-
-
-
Constructor Detail
-
EnsembleDataSet
public EnsembleDataSet(int inputSize, int idealSize)
-
EnsembleDataSet
public EnsembleDataSet(MLDataSet mlds)
-
-
Method Detail
-
getIdealSize
public int getIdealSize()
- Specified by:
getIdealSizein interfaceMLDataSet- Returns:
- The size of the ideal data.
-
getInputSize
public int getInputSize()
- Specified by:
getInputSizein interfaceMLDataSet- Returns:
- The size of the input data.
-
isSupervised
public boolean isSupervised()
- Specified by:
isSupervisedin interfaceMLDataSet- Returns:
- True if this is a supervised training set.
-
getRecordCount
public long getRecordCount()
Description copied from interface:MLDataSetDetermine the total number of records in the set.- Specified by:
getRecordCountin interfaceMLDataSet- Returns:
- The total number of records in the set.
-
getRecord
public void getRecord(long index, MLDataPair pair)Description copied from interface:MLDataSetRead an individual record, specified by index, in random order.
-
openAdditional
public MLDataSet openAdditional()
Description copied from interface:MLDataSetOpens an additional instance of this dataset.- Specified by:
openAdditionalin interfaceMLDataSet- Returns:
- The new instance.
-
add
public void add(MLData data1)
Description copied from interface:MLDataSetAdd a object to the dataset. This is used with unsupervised training, as no ideal output is provided. Note: not all implemenations support the add methods.
-
add
public void add(MLData inputData, MLData idealData)
Description copied from interface:MLDataSetAdd a set of input and ideal data to the dataset. This is used with supervised training, as ideal output is provided. Note: not all implementations support the add methods.
-
add
public void add(MLDataPair inputData)
Description copied from interface:MLDataSetAdd a an object to the dataset. This is used with unsupervised training, as no ideal output is provided. Note: not all implementations support the add methods.
-
close
public void close()
Description copied from interface:MLDataSetClose this datasource and release any resources obtained by it, including any iterators created.
-
get
public MLDataPair get(int index)
-
iterator
public java.util.Iterator<MLDataPair> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<MLDataPair>
-
-
DMelt 3.0 © DataMelt by jWork.ORG