Hi,
I am reading an SQL table to create an ExampleSet and also trying to create a matching ExampleSet in memory.
First a question about the sql generated set.
System.out.println(exampleSet.toResultString()); Attributes tributes = exampleSet.getAttributes(); System.out.println(tributes.toString()); |
When I run this on my SQL generated ExampleSet I see in 4.6
SimpleExampleSet:
59 examples,
8 regular attributes,
special attributes = {
label = #9: RNK (nominal/single_value)/values=[A, B, C, D, E]
id = #8: inc (integer/single_value)
}
SimpleAttributes: sl3, sl5, sl8, sl13, sl21, mvv, hl, mvp, label := RNK, id := inc
Where did the id come from? I manipulated the id so that it became the sql key by adding inc and by placing it next to the label. Before I did this, the double mvp was not a regular expression, it seemed to be left out, becoming id. Could this be a bug?
This is my Memory Example set that has a null pointer exception.
SimpleExampleSet:
59 examples,
8 regular attributes,
special attributes = {
label = #8: RNK (nominal/single_value)/values=[A, B, C, D, E]
}
SimpleAttributes: sl3, sl5, sl8, sl13, sl21, mvv, hl, mvp, label := RNK