Hi all,
I am doing some basic experimenting with ENCOG ANN, but am having issue following a simple walthough. At this stage I am simply trying to grab data from a CSV and normalise it. My code is:
string filename = "spots.csv";
var format = new CSVFormat(',', ' ');
IVersatileDataSource source = new CSVDataSource(filename, true, format);
var data = new VersatileMLDataSet(source);
data.NormHelper.Format = format;
Encog.ML.Data.Versatile.Columns.ColumnDefinition columnSSN = data.DefineSourceColumn("SSN", Encog.ML.Data.Versatile.Columns.ColumnType.Continuous);
Encog.ML.Data.Versatile.Columns.ColumnDefinition columnDEV = data.DefineSourceColumn("DEV", Encog.ML.Data.Versatile.Columns.ColumnType.Continuous);
data.DefineSingleOutputOthersInput(columnSSN);
EncogModel model = new EncogModel(data);
model.SelectMethod(data, MLMethodFactory.TypeFeedforward);
model.Report = new ConsoleStatusReportable();
data.Normalize();
I am getting the error "Can't find columns". Which doesn't make sense to me! They are definitely there, and contain the headers SSN and DEV. Does it matter what order they are in?