Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-2019

SparseRowMatrix assign ops user for loops instead of iterateNonZero and so can be optimized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.13.0
    • classic-15.0
    • classic
    • None

    Description

      DRMs get blockified into SparseRowMatrix instances if the density is low. But SRM inherits the implementation of method like "assign" from AbstractMatrix, which uses nest for loops to traverse rows. For multiplying 2 matrices that are extremely sparse, the kind if data you see in collaborative filtering, this is extremely wasteful of execution time. Better to use a sparse vector's iterateNonZero Iterator for some function types.

      Attachments

        Issue Links

          Activity

            People

              pferrel Pat Ferrel
              pferrel Pat Ferrel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: