You are here

Creating an array to read more than 2 columns

Hi guys,

I'm developing a system to predict the cost of a product. I have used the encog-core-cs.dll file and it seems like it have a 2D array to read , that means only two columns from a table/dataset (csv file) can be read. I need to read more than two columns as inputs and is there a way to do it?

I have created my system using the article in: http://www.codeproject.com/Articles/175777/Financial-predictor-via-neura...

Is there a way that i can find the source code of encog-core-cs.dll for newest version? I am struck in this place and this is the last work that i have to do to finish my design. I would be very thankful if anyone can help me with this.

Neural Network Forums: 
fxmozart's picture

Code : https://github.com/fxmozart/encog-dotnet-core

You can definitely read as many fields as you want from a csv, there are more than one way to actually do it..

Check out the sepia example for more info on CSV's, normalization, columns and so forth.(its also on the wiki).

I also added a small methods which grabs arrays by column , and gives them to encog (nothing fancy , but it works) , look in NetWorkUtils.cs (but you are better of learning the CSVNormalization, my method is just a quick and dirty way to get data FAST , to an array , then use the usual ArrayNormalization class.

Cheers.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer