Skip to content
Snippets Groups Projects
Commit 8aa1f4c4 authored by Sean Owen's avatar Sean Owen Committed by Reynold Xin
Browse files

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
parent aa17f022
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment