001    package aima.learning.neural;
002    
003    import java.util.ArrayList;
004    
005    
006    public class IrisNNDataSet extends NNDataSet {
007    
008            @Override
009            public void setTargetColumns() {
010                    // assumed that data from file has been pre processed
011                    // TODO this should be
012                    // somewhere else,in the
013                    // super class.
014                    // Type != class Aargh! I want more
015                    // powerful type systems
016                    targetColumnNumbers = new ArrayList<Integer>();
017                    int size = nds.get(0).size();
018                    targetColumnNumbers.add(size - 1); // last column
019                    targetColumnNumbers.add(size - 2); // last but one column
020                    targetColumnNumbers.add(size - 3); // and the one before that
021    
022            }
023    
024    }