c

com.johnsnowlabs.ml.tensorflow

TensorflowClassifier

class TensorflowClassifier extends Serializable with ClassifierMetrics

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TensorflowClassifier
  2. ClassifierMetrics
  3. Logging
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TensorflowClassifier(tensorflow: TensorflowWrapper, encoder: ClassifierDatasetEncoder, testEncoder: Option[ClassifierDatasetEncoder], verboseLevel: nlp.annotators.ner.Verbose.Value)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def calcStat(tp: Int, fp: Int, fn: Int): (Float, Float, Float)
    Definition Classes
    ClassifierMetrics
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. val encoder: ClassifierDatasetEncoder
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. def getLogName: String
    Definition Classes
    Logging
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. def internalPredict(inputs: Array[Array[Float]], numClasses: Int, configProtoBytes: Option[Array[Byte]] = None): Array[Int]
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def log(value: => String, minLevel: Level): Unit
    Attributes
    protected
    Definition Classes
    Logging
  17. val logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  18. def measure(labeled: Array[(Array[Float], Array[Int])], sourceData: String, extended: Boolean = false, enableOutputLogs: Boolean = false, outputLogsPath: String, batchSize: Int = 100): (Float, Float)
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. def outputLog(value: => String, uuid: String, shouldLog: Boolean, outputLogsPath: String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  23. def predict(docs: Seq[(Int, Seq[Annotation])], configProtoBytes: Option[Array[Byte]] = None): Seq[Annotation]
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. val tensorflow: TensorflowWrapper
  26. val testEncoder: Option[ClassifierDatasetEncoder]
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. 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
  29. val verboseLevel: nlp.annotators.ner.Verbose.Value
    Definition Classes
    TensorflowClassifierLogging
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from ClassifierMetrics

Inherited from Logging

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped