Skip to content

Commit 88870e7

Browse files
committed
update
1 parent 89479bd commit 88870e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mllib-dal/src/main/scala/com/intel/oap/mllib/OneDAL.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,8 @@ object OneDAL {
565565
val numRows = list.size
566566
val numCols = list(0).getAs[Vector](1).toArray.size
567567

568-
val labelsAddress = OneDAL.cNewDoubleArray(numRows.toLong)
569-
val featuresAddress= OneDAL.cNewDoubleArray(numRows.toLong * numCols)
568+
val labelsAddress = OneDAL.cNewFloatArray(numRows.toLong)
569+
val featuresAddress= OneDAL.cNewFloatArray(numRows.toLong * numCols)
570570
for ( i <- 0 until numberCores) {
571571
val f = Future {
572572
val iter = list.iterator
@@ -587,7 +587,7 @@ object OneDAL {
587587
val result = Future.sequence(labeledPointsList)
588588
Await.result(result, Duration.Inf)
589589

590-
Iterator(((featuresAddress, numRows.toLong, numCols.toLong), (labelsAddress, numRows.toLong, 1.toLong)))
590+
Iterator(((featuresAddress, c.toLong, numCols.toLong), (labelsAddress, numRows.toLong, 1.toLong)))
591591

592592
}.setName("coalescedTables").cache()
593593

0 commit comments

Comments
 (0)