Trait/Object

com.github.nearbydelta.deepspark.network

Network

Related Docs: object Network | package network

Permalink

trait Network[In, Out] extends Serializable with KryoSerializable

Trait of network.

In

Type of input

Out

Type of output.

Linear Supertypes
KryoSerializable, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Network
  2. KryoSerializable
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def backward(err: ParSeq[DataVec]): ArrayBuffer[() ⇒ Unit]

    Permalink

    Execute error backpropagation

    Execute error backpropagation

    err

    Sequence of error to be backprop.

  2. abstract def forward(in: In): DataVec

    Permalink

    Apply this network.

    Apply this network.

    in

    input

    returns

    Output vector.

  3. abstract def forward(in: ParSeq[In]): ParSeq[DataVec]

    Permalink

    Apply this network.

    Apply this network.

    in

    Parallel Sequence of input

    returns

    Sequence of Output vector.

  4. abstract def forward(in: RDD[(Long, In)]): RDD[(Long, DataVec)]

    Permalink

    Apply this network.

    Apply this network.

    in

    RDD of (ID, Value).

    returns

    RDD of (ID, Output vector).

Concrete 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. def NOut: Int

    Permalink

    Size of output

    Size of output

    returns

    Output size

  5. final def add(layer: Layer[DataVec, DataVec]): Network.this.type

    Permalink

    Add new top layer.

    Add new top layer.

    layer

    Layer to be added on top of current stack.

    returns

    self

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. final def backwardSeq(err: ParSeq[DataVec]): (ParSeq[DataVec], ArrayBuffer[() ⇒ Unit])

    Permalink

    Backpropagate errors

    Backpropagate errors

    err

    Top-level error to be propagated backward.

    returns

    lowest-level error sequence.

    Attributes
    protected
  8. def broadcast(sc: SparkContext): Unit

    Permalink

    Broadcast resources of input layer.

    Broadcast resources of input layer.

    sc

    Spark Context

  9. var builder: WeightBuilder

    Permalink

    Weight builder for this network.

    Weight builder for this network. *

    Attributes
    protected
  10. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def forwardRDD(in: RDD[(Long, DataVec)], layers: Seq[Layer[DataVec, DataVec]] = layerSeq): RDD[(Long, DataVec)]

    Permalink

    Apply by layers.

    Apply by layers.

    in

    RDD of (ID, Vector)

    layers

    Sequence of layers to be applied. Default value is layer sequence.

    returns

    RDD of final output (ID, Output Vector)

    Attributes
    protected
    Annotations
    @tailrec()
  15. final def forwardSeq(in: ParSeq[DataVec]): ParSeq[DataVec]

    Permalink

    Apply by layers.

    Apply by layers.

    in

    Parallel sequence of Vector

    returns

    Parallel sequence of final output

    Attributes
    protected
  16. final def forwardSingle(in: DataVec, layers: Seq[Layer[DataVec, DataVec]] = layerSeq): DataVec

    Permalink

    Apply by layers.

    Apply by layers.

    in

    Vector

    layers

    Sequence of layers to be applied. Default value is layer sequence.

    returns

    Final output Output Vector

    Attributes
    protected
    Annotations
    @tailrec()
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def initiateBy(builder: WeightBuilder): Network.this.type

    Permalink

    Initiate this network by given builder

    Initiate this network by given builder

    builder

    Weight builder

    returns

    self

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. val layerSeq: ListBuffer[Layer[DataVec, DataVec]]

    Permalink

    Seqeunce of hidden/output layer to be applied.

    Seqeunce of hidden/output layer to be applied. *

    Attributes
    protected
  22. def layers: Seq[Layer[DataVec, DataVec]]

    Permalink

    Sequence of hidden/output layers

    Sequence of hidden/output layers

    returns

    Sequence of hidden/output layer

  23. def loss: Double

    Permalink

    Weight loss of layers

    Weight loss of layers

    returns

    Weight loss

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

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. def predictSoft(in: In): DataVec

    Permalink

    Apply this network.

    Apply this network.

    in

    input

    returns

    Output vector.

  28. def predictSoft(in: RDD[In])(implicit arg0: ClassTag[DataVec]): RDD[DataVec]

    Permalink

    Apply this network.

    Apply this network.

    in

    RDD of Value.

    returns

    RDD of Output vector.

  29. def read(kryo: Kryo, input: Input): Unit

    Permalink
    Definition Classes
    Network → KryoSerializable
  30. def saveTo(file: String): Unit

    Permalink

    Save this network.

    Save this network.

    file

    Save path of this network.

  31. def setUpdatable(bool: Boolean): Network[In, Out]

    Permalink

    Set this network can be used in backpropagation.

    Set this network can be used in backpropagation.

    bool

    True if this should prepare backpropagation

    returns

    self

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

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def unbroadcast(): Unit

    Permalink

    Unpersist resources of input layer.

  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def write(kryo: Kryo, output: Output): Unit

    Permalink
    Definition Classes
    Network → KryoSerializable

Inherited from KryoSerializable

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped