Skip to content

Commit

Permalink
SPARK-3278 Isotonic regression java api
Browse files Browse the repository at this point in the history
  • Loading branch information
zapletal-martin committed Jan 12, 2015
1 parent e9b3323 commit 45aa7e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@

package org.apache.spark.mllib.util

import org.apache.spark.annotation.DeveloperApi
import scala.collection.JavaConversions._
import java.lang.{Double => JDouble}

@DeveloperApi
object IsotonicDataGenerator {

/**
Expand All @@ -29,7 +31,6 @@ object IsotonicDataGenerator {
*/
def generateIsotonicInputAsList(labels: Array[Double]): java.util.List[(JDouble, JDouble)] = {
seqAsJavaList(generateIsotonicInput(wrapDoubleArray(labels):_*).map(x => (new JDouble(x._1), new JDouble(x._2))))
//.map(d => new Tuple3(new java.lang.Double(d._1), new java.lang.Double(d._2), new java.lang.Double(d._3))))
}

/**
Expand Down

0 comments on commit 45aa7e8

Please sign in to comment.