SPARK-1357 (addendum). More Experimental items in MLlib
Per discussion, this is my suggestion to make ALS Rating, ClassificationModel, RegressionModel experimental for now, to reserve the right to possibly change after 1.0. See what you think of this much. Author: Sean Owen <sowen@cloudera.com> Closes #372 from srowen/SPARK-1357Addendum and squashes the following commits: 17cf1ea [Sean Owen] Remove (another) blank line after ":: Experimental ::" 6800e4c [Sean Owen] Remove blank line after ":: Experimental ::" b3a88d2 [Sean Owen] Make ALS Rating, ClassificationModel, RegressionModel experimental for now, to reserve the right to possibly change after 1.0
This commit is contained in:
parent
aa17f022c5
commit
8aa1f4c4f6
|
@ -19,11 +19,14 @@ package org.apache.spark.mllib.classification
|
|||
|
||||
import org.apache.spark.mllib.linalg.Vector
|
||||
import org.apache.spark.rdd.RDD
|
||||
import org.apache.spark.annotation.Experimental
|
||||
|
||||
/**
|
||||
* :: Experimental ::
|
||||
* Represents a classification model that predicts to which of a set of categories an example
|
||||
* belongs. The categories are represented by double values: 0.0, 1.0, 2.0, etc.
|
||||
*/
|
||||
@Experimental
|
||||
trait ClassificationModel extends Serializable {
|
||||
/**
|
||||
* Predict values for the given data set using the model trained.
|
||||
|
|
|
@ -56,8 +56,10 @@ private[recommendation] case class InLinkBlock(
|
|||
|
||||
|
||||
/**
|
||||
* :: Experimental ::
|
||||
* A more compact class to represent a rating than Tuple3[Int, Int, Double].
|
||||
*/
|
||||
@Experimental
|
||||
case class Rating(val user: Int, val product: Int, val rating: Double)
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,7 +19,12 @@ package org.apache.spark.mllib.regression
|
|||
|
||||
import org.apache.spark.rdd.RDD
|
||||
import org.apache.spark.mllib.linalg.Vector
|
||||
import org.apache.spark.annotation.Experimental
|
||||
|
||||
/**
|
||||
* :: Experimental ::
|
||||
*/
|
||||
@Experimental
|
||||
trait RegressionModel extends Serializable {
|
||||
/**
|
||||
* Predict values for the given data set using the model trained.
|
||||
|
|
Loading…
Reference in a new issue