class TensorflowClassifier extends Serializable with ClassifierMetrics
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TensorflowClassifier
- ClassifierMetrics
- Logging
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new TensorflowClassifier(tensorflow: TensorflowWrapper, encoder: ClassifierDatasetEncoder, testEncoder: Option[ClassifierDatasetEncoder], verboseLevel: nlp.annotators.ner.Verbose.Value)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def aggregatedMetrics(labels: Seq[String], truePositives: Map[String, Int], falsePositives: Map[String, Int], falseNegatives: Map[String, Int], extended: Boolean, enableOutputLogs: Boolean, outputLogsPath: String, uuid: String = Identifiable.randomUID("ClassifierMetrics")): (Float, Float)
- Definition Classes
- ClassifierMetrics
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def calcStat(tp: Int, fp: Int, fn: Int): (Float, Float, Float)
- Definition Classes
- ClassifierMetrics
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val encoder: ClassifierDatasetEncoder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getLogName: String
- Definition Classes
- Logging
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def internalPredict(inputs: Array[Array[Float]], numClasses: Int, configProtoBytes: Option[Array[Byte]] = None): Array[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log(value: => String, minLevel: Level): Unit
- Attributes
- protected
- Definition Classes
- Logging
- val logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def measure(labeled: Array[(Array[Float], Array[Int])], sourceData: String, extended: Boolean = false, enableOutputLogs: Boolean = false, outputLogsPath: String, batchSize: Int = 100): (Float, Float)
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def outputLog(value: => String, uuid: String, shouldLog: Boolean, outputLogsPath: String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def predict(docs: Seq[(Int, Seq[Annotation])], configProtoBytes: Option[Array[Byte]] = None): Seq[Annotation]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tensorflow: TensorflowWrapper
- val testEncoder: Option[ClassifierDatasetEncoder]
- def toString(): String
- Definition Classes
- AnyRef → Any
- def train(inputs: (Array[Array[Float]], Array[String]), testInputs: Option[(Array[Array[Float]], Array[String])], classNum: Int, lr: Float = 5e-3f, batchSize: Int = 64, dropout: Float = 0.5f, startEpoch: Int = 0, endEpoch: Int = 10, configProtoBytes: Option[Array[Byte]] = None, validationSplit: Float = 0.0f, evaluationLogExtended: Boolean = false, enableOutputLogs: Boolean = false, outputLogsPath: String, uuid: String = Identifiable.randomUID("classifierdl")): Unit
- val verboseLevel: nlp.annotators.ner.Verbose.Value
- Definition Classes
- TensorflowClassifier → Logging
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)