From 45aa7e8772a37ea2051a4fc6b9c9722460320a9b Mon Sep 17 00:00:00 2001 From: martinzapletal Date: Mon, 12 Jan 2015 00:04:42 +0000 Subject: [PATCH] SPARK-3278 Isotonic regression java api --- .../org/apache/spark/mllib/util/IsotonicDataGenerator.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mllib/src/main/scala/org/apache/spark/mllib/util/IsotonicDataGenerator.scala b/mllib/src/main/scala/org/apache/spark/mllib/util/IsotonicDataGenerator.scala index e95e511f3199b..f5c8c97ff8dca 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/util/IsotonicDataGenerator.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/util/IsotonicDataGenerator.scala @@ -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 { /** @@ -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)))) } /**