com.etsy.conjecture.scalding.train

MulticlassModelTrainer

class MulticlassModelTrainer extends AbstractModelTrainer[MulticlassLabel, UpdateableMulticlassLinearModel] with ModelTrainerStrategy[MulticlassLabel, UpdateableMulticlassLinearModel]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MulticlassModelTrainer
  2. ModelTrainerStrategy
  3. AbstractModelTrainer
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MulticlassModelTrainer(args: Args, categories: Array[String])

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. val aggressiveness: Double

    Aggressiveness parameter for passive aggressive classifier *

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val batchsz: Int

    Size of minibatch for mini-batch training, defaults to 1 which is just SGD.

    Size of minibatch for mini-batch training, defaults to 1 which is just SGD. *

  9. val bins: Int

  10. def buildMultiClassModel(buildSubModel: () ⇒ UpdateableLinearModel[BinaryLabel], categories: Array[String]): UpdateableMulticlassLinearModel

  11. val classSampleProbabilities: Map[String, Double]

  12. val classSampleProbabilityFile: Option[String]

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def endIteration(model: UpdateableMulticlassLinearModel, iteration: Int, models: Int): UpdateableMulticlassLinearModel

    Definition Classes
    ModelTrainerStrategy
  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. val examplesPerEpoch: Double

    A fudge factor so that an "epoch" for the purpose of learning rate computation can be more than one example, in which case the "epoch" will take a fractional amount equal to {# examples seen} / examples_per_epoch.

  18. val exponentialLearningRateBase: Double

    Base of the exponential learning rate (e.

    Base of the exponential learning rate (e.g., 0.99^{# examples seen}). *

  19. val finalThresholding: Double

  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. val ftrlAlpha: Double

    Learning rate parameters for FTRL

  22. val ftrlBeta: Double

  23. val gauss: Double

    Weight on gaussian prior on the parameters similar to ridge

  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def getIters: Int

  26. def getModel: UpdateableMulticlassLinearModel

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. val initialLearningRate: Double

    Initial learning rate used for SGD learning.

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. val iters: Int

    Number of iterations for sequential gradient descent

  31. val laplace: Double

    Weight on laplace regularization- a laplace prior on the parameters sparsity inducing ala lasso

  32. def mergeModels(model1: UpdateableMulticlassLinearModel, model2: UpdateableMulticlassLinearModel, iteration1: Int, iteration2: Int): UpdateableMulticlassLinearModel

    Definition Classes
    ModelTrainerStrategy
  33. def miniBatchSize: Int

  34. def modelPostProcess(m: UpdateableMulticlassLinearModel): UpdateableMulticlassLinearModel

  35. def modelReduceFunction(a: (UpdateableMulticlassLinearModel, List[LabeledInstance[MulticlassLabel]], Int, Int), b: (UpdateableMulticlassLinearModel, List[LabeledInstance[MulticlassLabel]], Int, Int)): (UpdateableMulticlassLinearModel, List[LabeledInstance[MulticlassLabel]], Int, Int)

    Definition Classes
    ModelTrainerStrategy
  36. val modelType: String

    What type of linear model should be used? Options are:

    What type of linear model should be used? Options are:

    1. perceptron 2. linear_svm 3. logistic_regression 4. mira
  37. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  40. val o: SGDOptimizer[_ <: RealValuedLabel]

    Choose an optimizer to use

  41. val optimizer: SGDOptimizer[_ <: RealValuedLabel]

  42. val optimizerType: String

    What kind of learning rate schedule / regularization should we use?

    What kind of learning rate schedule / regularization should we use?

    Options:

    1. elastic_net 2. adagrad 3. passive_aggressive 4. ftrl
  43. lazy val probabilityMap: Map[String, Double]

  44. def reTrain(instances: Pipe, instanceField: Symbol, model: Pipe, modelField: Symbol): Pipe

  45. def sampleProb(l: MulticlassLabel): Double

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

    Definition Classes
    AnyRef
  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. def train(instances: Pipe, instanceField: Symbol = 'instance, modelField: Symbol = 'model): Pipe

  49. val trainer: AbstractModelTrainer[MulticlassLabel, UpdateableMulticlassLinearModel]

  50. val truncationAlpha: Double

    Aggressiveness of gradient truncation updates, how much shrinkage is applied to the model's parameters

  51. val truncationPeriod: Int

    Period of gradient truncation updates *

  52. val truncationThresh: Double

    Threshold for applying gradient truncation updates parameter values smaller than this in magnitude are truncated

  53. def updateModelOnMiniBatch(model: UpdateableMulticlassLinearModel, instances: List[LabeledInstance[MulticlassLabel]], start_iteration: Int): (UpdateableMulticlassLinearModel, List[LabeledInstance[MulticlassLabel]], Int)

    Definition Classes
    ModelTrainerStrategy
  54. val useExponentialLearningRate: Boolean

    Whether to use the exponential learning rate.

    Whether to use the exponential learning rate. If not chosen then the learning rate is like 1.0 / epoch. *

  55. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped