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

[MLLIB] Python support for Power Iteration Clustering

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • MLlib
    • None

    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

              Unassigned Unassigned
              javadba Stephen Boesch
              Votes:
              0 Vote for this issue
              Watchers:
              1 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