Class/Object

com.salesforce.op.features.types

Prediction

Related Docs: object Prediction | package types

Permalink

class Prediction extends RealMap with NonNullable

Prediction representation - a map containing prediction, and optional raw prediction and probability values.

This value can only be constructed from a non empty map containing a prediction, and optional raw prediction and probability values, otherwise NonNullableEmptyException is thrown.

Linear Supertypes
NonNullable, RealMap, NumericMap, OPMap[Double], OPCollection, FeatureType, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Prediction
  2. NonNullable
  3. RealMap
  4. NumericMap
  5. OPMap
  6. OPCollection
  7. FeatureType
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Element = Double

    Permalink
    Definition Classes
    OPMap
  2. type Value = Map[String, Double]

    Permalink

    Feature value type

    Feature value type

    Definition Classes
    OPMapFeatureType

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def contains(v: Value): Boolean

    Permalink

    Returns true if this feature value is non empty and contains the specified value $v.

    Returns true if this feature value is non empty and contains the specified value $v. Otherwise, returns false.

    v

    value to test

    Definition Classes
    FeatureType
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. final def equals(in: Any): Boolean

    Permalink

    Indicates whether some other object is "equal to" this one

    Indicates whether some other object is "equal to" this one

    Definition Classes
    FeatureType → AnyRef → Any
  9. final def exists(p: (Value) ⇒ Boolean): Boolean

    Permalink

    Returns true if this feature value is non empty and the predicate $p returns true when applied to this feature type value.

    Returns true if this feature value is non empty and the predicate $p returns true when applied to this feature type value. Otherwise, returns false.

    p

    the predicate to test

    Definition Classes
    FeatureType
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def hashCode(): Int

    Permalink

    Returns a hash code value for the value

    Returns a hash code value for the value

    Definition Classes
    FeatureType → AnyRef → Any
  13. final def isEmpty: Boolean

    Permalink

    Returns true is the value is empty, false otherwise

    Returns true is the value is empty, false otherwise

    Definition Classes
    OPMapFeatureType
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def isNullable: Boolean

    Permalink

    Returns true is the value is nullable, false otherwise

    Returns true is the value is nullable, false otherwise

    Definition Classes
    NonNullableFeatureType
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def nonEmpty: Boolean

    Permalink

    Returns true is the value is non empty, false otherwise

    Returns true is the value is non empty, false otherwise

    Definition Classes
    FeatureType
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def prediction: Double

    Permalink

    Prediction value

  21. def probability: Array[Double]

    Permalink

    Probability values

  22. def rawPrediction: Array[Double]

    Permalink

    Raw prediction values

  23. def score: Array[Double]

    Permalink

    Score values (based of probability or prediction)

    Score values (based of probability or prediction)

    returns

    prediction values or prediction

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toDoubleMap: Map[String, Double]

    Permalink

    Convert map of numeric values to map of Double values

    Convert map of numeric values to map of Double values

    returns

    map of Double values

    Definition Classes
    RealMapNumericMap
  26. def toString(): String

    Permalink

    Returns a string representation of this value

    Returns a string representation of this value

    Definition Classes
    PredictionFeatureType → AnyRef → Any
  27. final def v: Value

    Permalink

    Returns value shortcut

    Returns value shortcut

    Definition Classes
    FeatureType
  28. val value: Map[String, Double]

    Permalink

    map of real values

    map of real values

    Definition Classes
    RealMapFeatureType
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from NonNullable

Inherited from RealMap

Inherited from NumericMap

Inherited from OPMap[Double]

Inherited from OPCollection

Inherited from FeatureType

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped