You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting Vector to CSRNumericTable, If multiple rows without non-zero elements , we only calculated once for rowOffsets Array.
// Converted to one CSRNumericTable
for (row <- 0 until vectors.length) {
val rowVector = vectors(row)
rowVector.foreachActive { (column, value) =>
values(indexValues) = value
// one-based indexValues
columnIndices(indexValues) = column + 1
if (row > curRow) {
curRow = row
// one-based indexValues
rowOffsets += indexValues + 1
}
indexValues = indexValues + 1
}
}
// one-based row indexValues
rowOffsets += indexValues + 1
The text was updated successfully, but these errors were encountered:
minmingzhu
changed the title
[Native Bayes] Fix error when converting Vector to CSRNumericTable
[ML-$176][Native Bayes] Fix error when converting Vector to CSRNumericTable
Feb 21, 2022
minmingzhu
changed the title
[ML-$176][Native Bayes] Fix error when converting Vector to CSRNumericTable
[Native Bayes] Fix error when converting Vector to CSRNumericTable
Feb 21, 2022
When converting Vector to CSRNumericTable, If multiple rows without non-zero elements , we only calculated once for rowOffsets Array.
The text was updated successfully, but these errors were encountered: