org.encog.ml.data.auto
Class AutoFloatDataSet
- java.lang.Object
-
- org.encog.ml.data.auto.AutoFloatDataSet
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<MLDataPair>, MLDataSet
public class AutoFloatDataSet extends java.lang.Object implements java.io.Serializable, MLDataSet
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classAutoFloatDataSet.AutoFloatIterator
-
Constructor Summary
Constructors Constructor and Description AutoFloatDataSet(int theInputCount, int theIdealCount, int theInputWindowSize, int theOutputWindowSize)
-
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.voidaddColumn(float[] data)voidclose()Close this datasource and release any resources obtained by it, including any iterators created.MLDataPairget(int index)intgetIdealSize()intgetInputSize()floatgetNormalizedMax()floatgetNormalizedMin()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.booleanisNormalizationEnabled()booleanisSupervised()java.util.Iterator<MLDataPair>iterator()voidloadCSV(java.lang.String filename, boolean headers, CSVFormat format, int[] input, int[] ideal)MLDataSetopenAdditional()Opens an additional instance of this dataset.voidsetNormalizationEnabled(boolean normalizationEnabled)voidsetNormalizedMax(float normalizedMax)voidsetNormalizedMin(float normalizedMin)intsize()
-
-
-
Constructor Detail
-
AutoFloatDataSet
public AutoFloatDataSet(int theInputCount, int theIdealCount, int theInputWindowSize, int theOutputWindowSize)
-
-
Method Detail
-
iterator
public java.util.Iterator<MLDataPair> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<MLDataPair>
-
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)
-
addColumn
public void addColumn(float[] data)
-
loadCSV
public void loadCSV(java.lang.String filename, boolean headers, CSVFormat format, int[] input, int[] ideal)
-
getNormalizedMax
public float getNormalizedMax()
- Returns:
- the normalizedMax
-
setNormalizedMax
public void setNormalizedMax(float normalizedMax)
- Parameters:
normalizedMax- the normalizedMax to set
-
getNormalizedMin
public float getNormalizedMin()
- Returns:
- the normalizedMin
-
setNormalizedMin
public void setNormalizedMin(float normalizedMin)
- Parameters:
normalizedMin- the normalizedMin to set
-
isNormalizationEnabled
public boolean isNormalizationEnabled()
- Returns:
- the normalizationEnabled
-
setNormalizationEnabled
public void setNormalizationEnabled(boolean normalizationEnabled)
- Parameters:
normalizationEnabled- the normalizationEnabled to set
-
-
DMelt 3.0 © DataMelt by jWork.ORG