machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

Problem with the EvaluatorUtils method that appends per-instance data views

Open yaeldekel opened this issue 8 years ago • 2 comments

When appending the per-instance data views, we create create new key columns containing the union of the key values of the keys in the individual data views. Columns of type key that have text key values get reconciled twice, resulting in wrong values in these columns:

else if (dvNumber == 0 && dv.Schema.HasKeyNames(i, type.KeyCount)) firstDvKeyWithNamesColumns.Add(name); else if (type.KeyCount > 0 && name != labelColName) { ...

Columns that go into the first "else-if" should not go into the second "else-if" which is supposed to handle key columns without text key values.

yaeldekel avatar Jun 27 '18 18:06 yaeldekel

Is this related to #395 ?

shauheen avatar Jun 27 '18 18:06 shauheen

Yes. The fix to #395 introduced this bug.

yaeldekel avatar Jun 27 '18 21:06 yaeldekel