Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5962

[MLLIB] Python support for Power Iteration Clustering

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: MLlib
    • Labels:
    • Target Version/s:

      Description

      Add python support for the Power Iteration Clustering feature. Here is a fragment of the python API as we plan to implement it:

      /**

      • Java stub for Python mllib PowerIterationClustering.run()
        */
        def trainPowerIterationClusteringModel(
        data: JavaRDD[(java.lang.Long, java.lang.Long, java.lang.Double)],
        k: Int,
        maxIterations: Int,
        runs: Int,
        initializationMode: String,
        seed: java.lang.Long): PowerIterationClusteringModel = {
        val picAlg = new PowerIterationClustering()
        .setK(k)
        .setMaxIterations(maxIterations)

      try

      { picAlg.run(data.rdd.persist(StorageLevel.MEMORY_AND_DISK)) }

      finally

      { data.rdd.unpersist(blocking = false) }

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yanboliang Yanbo Liang
                Reporter:
                javadba Stephen Boesch
                Shepherd:
                Xiangrui Meng
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified