org.apache.spark.streamdm.core

Example

class Example extends Serializable

An Example is a wrapper on top of the Instance class hierarchy. It contains a reference to an input Instance and an output Instance, and provides setters and getters for the features and labels. This is done so that the DStream accepts any type of Instance in the parameters, and that the same DStream can be allowed to contain multiple types of Instance.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Example
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Example(inInstance: Instance, outInstance: Instance = new NullInstance(), weightValue: Double = 1.0)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def featureAt(index: Int): Double

    Get the input value present at position index

    Get the input value present at position index

    index

    the index of the value

    returns

    a Double representing the feature value

  11. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. val in: Instance

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def labelAt(index: Int): Double

    Get the output value present at position index

    Get the output value present at position index

    index

    the index of the value

    returns

    a Double representing the value

  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. val out: Instance

  21. def setFeature(index: Int, input: Double): Example

    Add a feature to the instance in the example

    Add a feature to the instance in the example

    index

    the index at which the value is added

    input

    the feature value which is added up

    returns

    an Example containing an Instance with the new features

  22. def setLabel(index: Int, input: Double): Example

    Add a feature to the instance in the example

    Add a feature to the instance in the example

    index

    the index at which the value is added

    input

    the label value which is added up

    returns

    an Example containing an Instance with the new labels

  23. def setWeight(value: Double): Example

    Set the weight of the Example

    Set the weight of the Example

    value

    the weight value

    returns

    an Example containing the new weight

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

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    Example → AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. val weight: Double

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped