cc.factorie.optimize

HogwildTrainer

class HogwildTrainer extends Trainer with FastLogging

A parallel online trainer which has no locks or synchronization. Only use this if you know what you're doing.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HogwildTrainer
  2. FastLogging
  3. Logging
  4. Trainer
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HogwildTrainer(weightsSet: WeightsSet, optimizer: GradientOptimizer, nThreads: Int = ..., maxIterations: Int = 3, logEveryN: Int = -1, locksForLogging: Boolean = true)

    weightsSet

    The parameters to optimize

    optimizer

    The optimizer

    nThreads

    How many threads to use

    maxIterations

    The maximum number of iterations

    logEveryN

    How often to log.

    locksForLogging

    Whether to lock around logging. Disabling this might make logging not work at all.

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. var accumulatedValue: Double

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef → Any
  11. var examplesProcessed: Int

  12. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  15. def isConverged: Boolean

    Would more training help?

    Would more training help?

    Definition Classes
    HogwildTrainerTrainer
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. var iteration: Int

  18. val lock: RWLock

  19. val locksForLogging: Boolean

    Whether to lock around logging.

    Whether to lock around logging. Disabling this might make logging not work at all.

  20. var logEveryN: Int

    How often to log.

  21. val logger: Logger

    Definition Classes
    FastLoggingLogging
  22. val maxIterations: Int

    The maximum number of iterations

  23. val nThreads: Int

    How many threads to use

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

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

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

    Definition Classes
    AnyRef
  27. val optimizer: GradientOptimizer

    The optimizer

  28. def processExamples(examples: Iterable[Example]): Unit

    Process the examples once.

    Process the examples once.

    examples

    Examples to be processed

    Definition Classes
    HogwildTrainerTrainer
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. var t0: Long

  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. def trainFromExamples(examples: Iterable[Example]): Unit

    Repeatedly process the examples until training has converged.

    Repeatedly process the examples until training has converged.

    Definition Classes
    Trainer
  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. val weightsSet: WeightsSet

    The parameters to optimize

Inherited from FastLogging

Inherited from Logging

Inherited from Trainer

Inherited from AnyRef

Inherited from Any

Ungrouped