Trait

com.github.nearbydelta.deepspark.train

Trainer

Related Doc: package train

Permalink

trait Trainer[IN, EXP, OUT] extends Serializable

Trait of trainer

IN

Input type

EXP

Network output type

OUT

Output type

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

Type Members

  1. class LocalSampler extends Iterator[Seq[(IN, EXP)]]

    Permalink

    Sampling iterator, from local

  2. class RDDSampler extends Iterator[Seq[(IN, EXP)]]

    Permalink

    Sampling iterator, from RDD

Abstract Value Members

  1. implicit abstract val evidence$1: ClassTag[IN]

    Permalink

    Class tag of input

  2. implicit abstract val evidence$2: ClassTag[OUT]

    Permalink

    Class tag of output

  3. implicit abstract val evidence$3: ClassTag[EXP]

    Permalink

    Class tag of network output

  4. abstract def getValidationErr: (Double, Double)

    Permalink

    Calculate validation error of evaluation set

    Calculate validation error of evaluation set

    returns

    Evaluation loss

    Attributes
    protected
  5. abstract val name: String

    Permalink

    Name of this trainer

  6. abstract val network: Network[IN, OUT]

    Permalink

    Network

  7. abstract val objective: Objective

    Permalink

    Objective function

  8. abstract val param: TrainingParam

    Permalink

    Training parameter

  9. abstract val testSet: RDD[(IN, EXP)]

    Permalink

    Evaluation set

    Evaluation set

    Attributes
    protected
  10. abstract val trainSet: RDD[(IN, EXP)]

    Permalink

    Train set

    Train set

    Attributes
    protected
  11. abstract def trainSmallBatch(epoch: Int, patience: Int): Unit

    Permalink

    Train single small batch

    Train single small batch

    epoch

    current epoch

    patience

    current max iteration

    Attributes
    protected

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val batchSampler: Iterator[Seq[(IN, EXP)]]

    Permalink

    Sampler for mini-batch

    Sampler for mini-batch

    Attributes
    protected
  6. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. val file: File

    Permalink

    Temporary file path of network

    Temporary file path of network

    Attributes
    protected
  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 getMaxEpoch(epoch: Int, patience: Int): Int

    Permalink

    Get next maximum epoch.

    Get next maximum epoch.

    epoch

    Current epoch

    patience

    Current maximum iteration count

    returns

    maximum epoch

    Attributes
    protected
  13. def getStatus: (Int, Double, Double)

    Permalink
  14. final def getTrainedNetwork: Network[IN, OUT]

    Permalink

    Train using given RDD sequence.

  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val logfile: File

    Permalink
    Attributes
    protected
  18. val logger: Logger

    Permalink

    Logger

    Logger

    Attributes
    protected
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped