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

[MLLIB] Python support for Power Iteration Clustering

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • MLlib

    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

              yanboliang Yanbo Liang
              javadba Stephen Boesch
              Xiangrui Meng 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