Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Private batchSize

batchSize: number = 0

Private hypothesis

hypothesis: Matrix

Private learningRate

learningRate: number = 0.001

Private numberOfEpochs

numberOfEpochs: number = 1000

Private regularizationFactor

regularizationFactor: number = 0

Methods

Private enrichedWithBiases

getHypothesis

getLearningRate

  • getLearningRate(): number

getNumberOfEpochs

  • getNumberOfEpochs(): number

getRegularizationFactor

  • getRegularizationFactor(): number

predict

Protected predictFromEnrichedInputs

resetHypothesis

  • resetHypothesis(): void

setBatchSize

  • setBatchSize(batchSize?: number): void
  • Set batch size to

    • 0 for batch gradient descent
    • 1 for stochastic gradient descent
    • 1 for mini-batch gradient descent

    Parameters

    • Default value batchSize: number = 0

    Returns void

setHypothesis

  • setHypothesis(hypothesis: Matrix): void

setLearningRate

  • setLearningRate(learningRate: number): this

setNumberOfEpochs

  • setNumberOfEpochs(numberOfEpochs: number): this

setRegularizationFactor

  • setRegularizationFactor(regularizationFactor: number): this

train

Private trainBatch

Generated using TypeDoc