private List<List<Double>> rawExamplesFromDataSet(DataSet ds,
Numerizer numerizer) {
// assumes all values for inout and target are doubles
List<List<Double>> rds = new List<List<Double>>();
for (int i = 0; i < ds.size(); i++) {
List<Double> rexample = new List<Double>();
Example e = ds.getExample(i);
Pair<List<Double>, List<Double>> p = numerizer.numerize(e);
List<Double> attributes = p.getFirst();
foreach (Double d in attributes) {
rexample.Add(d);
}
List<Double> targets = p.getSecond();
foreach (Double d in targets) {
rexample.Add(d);
}
rds.Add(rexample);
}
return rds;
}
}