org.encog.util.normalize.input
Class InputFieldCSVText
- java.lang.Object
-
- org.encog.util.normalize.input.BasicInputField
-
- org.encog.util.normalize.input.InputFieldCSV
-
- org.encog.util.normalize.input.InputFieldCSVText
-
- All Implemented Interfaces:
- java.io.Serializable, InputField
public class InputFieldCSVText extends InputFieldCSV
An input field based on a CSV file. This is a text field that is mapped to an integer value. The first text value is mapped to 0, the second to 1, and so on.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description InputFieldCSVText()Construct an InputFieldCSVText with the default constructor.InputFieldCSVText(boolean usedForNetworkInput, java.io.File file, int offset)Construct a input field for a CSV file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intaddMapping(java.lang.String name)Add a string mapping.java.util.Map<java.lang.String,java.lang.Integer>getMappings()-
Methods inherited from class org.encog.util.normalize.input.InputFieldCSV
getFile, getOffset
-
Methods inherited from class org.encog.util.normalize.input.BasicInputField
applyMinMax, getCurrentValue, getMax, getMin, getUsedForNetworkInput, getValue, setCurrentValue, setMax, setMin, setUsedForNetworkInput
-
-
-
-
Constructor Detail
-
InputFieldCSVText
public InputFieldCSVText()
Construct an InputFieldCSVText with the default constructor. This is mainly used for reflection.
-
InputFieldCSVText
public InputFieldCSVText(boolean usedForNetworkInput, java.io.File file, int offset)Construct a input field for a CSV file.- Parameters:
usedForNetworkInput- True if this field is used for actual input to the neural network, as opposed to segregation only.file- The tile to read.offset- The CSV file column to read.
-
-
DMelt 3.0 © DataMelt by jWork.ORG