Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Brain

Index

Constructors

constructor

  • new Brain(minConfidence: number): Brain

Properties

Private classifier

classifier: LogisticRegressionClassifier

minConfidence

minConfidence: number

Static Readonly UncertainLabel

UncertainLabel: "_unknown" = "_unknown"

Methods

interpret

teach

  • teach(samples: string[], label: string): void
  • Provide the Brain samples of text to recognise

    Parameters

    • samples: string[]

      sample data to prepare the Brain to recognize

    • label: string

      a label for the given samples

    Returns void

train

  • train(): void

Generated using TypeDoc