Uploaded image for project: 'SW'
  1. SW-516

External cluster improperly convert RDD[ml.linalg.Vector]

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.15, 2.0.16, 2.2.1
    • Component/s: None
    • Labels:
      None
    • CustomerVisible:
      No
    • Sprint:

      Description

      See test:

      {format}
      test("RDDmllib.linalg.Vector to H2OFrame") { val dataDef = 1 to 10 val data = dataDef.map(v => org.apache.spark.mllib.linalg.Vectors.dense(v, 0, 0)) val rdd = sc.parallelize(data) val h2oFrame: H2OFrame = hc.asH2OFrame(rdd) assertRDDH2OFrameInvariants(rdd, h2oFrame) assertVectorDoubleValues(h2oFrame.vec(0), dataDef.map(_.toDouble)) assertVectorDoubleValues(h2oFrame.vec(1), dataDef.map(_ => 0.0)) assertVectorDoubleValues(h2oFrame.vec(2), dataDef.map(_ => 0.0)) }{format}

        Attachments

          Activity

            People

            • Assignee:
              Kuba Jakub Hava
              Reporter:
              michal Michal Malohlava
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: