Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix build error
  • Loading branch information
Peng Meng committed Jul 14, 2017
commit e5881f037db5b0cc66ca2e4eb74879d1bc9df9b1
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ object MatrixFactorizationModel extends Loader[MatrixFactorizationModel] {
j += num
pq.clear()
}
index -> (srcIds, dstIdMatrix, new DenseMatrix(m, num, scoreMatrix))
(index, (srcIds, dstIdMatrix, new DenseMatrix(m, num, scoreMatrix)))
}
ratings.aggregateByKey(null: Array[Int], null: Array[Int], null: DenseMatrix)(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is aggregating by key which in this case appears to be the "block index". What is the benefit then? Since each block will have a unique index, there would be no intermediate aggregation.

(rateSum, rate) => mergeFunc(rateSum, rate, num),
Expand Down