Class

com.intel.analytics.zoo.models.common

KerasZooModel

Related Doc: package common

Permalink

abstract class KerasZooModel[A <: Activity, B <: Activity, T] extends ZooModel[A, B, T]

Linear Supertypes
ZooModel[A, B, T], Container[A, B, T], AbstractModule[A, B, T], InferShape, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KerasZooModel
  2. ZooModel
  3. Container
  4. AbstractModule
  5. InferShape
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KerasZooModel()(implicit arg0: ClassTag[A], arg1: ClassTag[B], arg2: ClassTag[T], ev: TensorNumeric[T])

    Permalink

Abstract Value Members

  1. abstract def buildModel(): AbstractModule[A, B, T]

    Permalink

    Override this method to define a model.

    Override this method to define a model.

    Attributes
    protected
    Definition Classes
    ZooModel

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accGradParameters(input: A, gradOutput: B): Unit

    Permalink
    Definition Classes
    ZooModel → AbstractModule
  5. def addModel(model: AbstractModule[A, B, T]): KerasZooModel.this.type

    Permalink
    Definition Classes
    ZooModel
  6. def apply(name: String): Option[AbstractModule[Activity, Activity, T]]

    Permalink
    Definition Classes
    Container → AbstractModule
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def backward(input: A, gradOutput: B): A

    Permalink
    Definition Classes
    AbstractModule
  9. var backwardTime: Long

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  10. def build(): KerasZooModel.this.type

    Permalink
    Definition Classes
    ZooModel
  11. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Container → AbstractModule
  12. final def checkEngineType(): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  13. def clearGradientClipping(): Unit

    Permalink
  14. def clearState(): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  15. final def clone(deepCopy: Boolean): AbstractModule[A, B, T]

    Permalink
    Definition Classes
    AbstractModule
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def cloneModule(): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  18. def compile(optimizer: OptimMethod[T], loss: (Variable[T], Variable[T]) ⇒ Variable[T])(implicit ev: TensorNumeric[T]): Unit

    Permalink
  19. def compile(optimizer: OptimMethod[T], loss: (Variable[T], Variable[T]) ⇒ Variable[T], metrics: List[ValidationMethod[T]])(implicit ev: TensorNumeric[T]): Unit

    Permalink
  20. def compile(optimizer: String, loss: String)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  21. def compile(optimizer: String, loss: String, metrics: List[String])(implicit ev: TensorNumeric[T]): Unit

    Permalink
  22. def compile(optimizer: OptimMethod[T], loss: Criterion[T], metrics: List[ValidationMethod[T]] = null)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Container → AbstractModule → AnyRef → Any
  25. def evaluate(x: TextSet, batchSize: Int): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
  26. def evaluate(x: ImageSet, batchSize: Int)(implicit ev: TensorNumeric[T]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
  27. def evaluate(x: LocalDataSet[MiniBatch[T]])(implicit ev: TensorNumeric[T]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
  28. def evaluate(x: RDD[Sample[T]], batchSize: Int)(implicit ev: TensorNumeric[T]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
  29. final def evaluate(): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  30. final def evaluate(dataSet: LocalDataSet[MiniBatch[T]], vMethods: Array[_ <: ValidationMethod[T]]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
    Definition Classes
    AbstractModule
  31. final def evaluate(dataset: RDD[MiniBatch[T]], vMethods: Array[_ <: ValidationMethod[T]]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
    Definition Classes
    AbstractModule
  32. final def evaluate(dataset: RDD[Sample[T]], vMethods: Array[_ <: ValidationMethod[T]], batchSize: Option[Int]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
    Definition Classes
    AbstractModule
  33. final def evaluateImage(imageFrame: ImageFrame, vMethods: Array[_ <: ValidationMethod[T]], batchSize: Option[Int]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
    Definition Classes
    AbstractModule
  34. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def findModules(moduleType: String): ArrayBuffer[AbstractModule[_, _, T]]

    Permalink
    Definition Classes
    Container
  36. def fit(x: TextSet, batchSize: Int, nbEpoch: Int)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  37. def fit(x: TextSet, batchSize: Int, nbEpoch: Int, validationData: TextSet)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  38. def fit(x: ImageSet, batchSize: Int, nbEpoch: Int)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  39. def fit(x: ImageSet, batchSize: Int, nbEpoch: Int, validationData: ImageSet)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  40. def fit(x: RDD[Sample[T]], batchSize: Int = 32, nbEpoch: Int = 10, validationData: RDD[Sample[T]] = null, featurePaddingParam: PaddingParam[T] = null, labelPaddingParam: PaddingParam[T] = null)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  41. def fit(x: DataSet[MiniBatch[T]], nbEpoch: Int)(implicit ev: TensorNumeric[T]): Unit

    Permalink
  42. def fit(x: DataSet[MiniBatch[T]], nbEpoch: Int, validationData: DataSet[MiniBatch[T]])(implicit ev: TensorNumeric[T]): Unit

    Permalink
  43. final def forward(input: A): B

    Permalink
    Definition Classes
    AbstractModule
  44. var forwardTime: Long

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  45. def freeze(names: String*): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  46. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  47. def getExtraParameter(): Array[Tensor[T]]

    Permalink
    Definition Classes
    Container → AbstractModule
  48. final def getInputShape(): Shape

    Permalink
    Definition Classes
    InferShape
  49. final def getName(): String

    Permalink
    Definition Classes
    AbstractModule
  50. final def getNumericType(): TensorDataType

    Permalink
    Definition Classes
    AbstractModule
  51. final def getOutputShape(): Shape

    Permalink
    Definition Classes
    InferShape
  52. def getParametersTable(): Table

    Permalink
    Definition Classes
    Container → AbstractModule
  53. final def getPrintName(): String

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  54. final def getScaleB(): Double

    Permalink
    Definition Classes
    AbstractModule
  55. final def getScaleW(): Double

    Permalink
    Definition Classes
    AbstractModule
  56. def getTimes(): Array[(AbstractModule[_ <: Activity, _ <: Activity, T], Long, Long)]

    Permalink
    Definition Classes
    Container → AbstractModule
  57. final def getTimesGroupByModuleType(): Array[(String, Long, Long)]

    Permalink
    Definition Classes
    AbstractModule
  58. def getTrainSummary(tag: String): Array[(Long, Float, Double)]

    Permalink
  59. def getValidationSummary(tag: String): Array[(Long, Float, Double)]

    Permalink
  60. final def getWeightsBias(): Array[Tensor[T]]

    Permalink
    Definition Classes
    AbstractModule
  61. var gradInput: A

    Permalink
    Definition Classes
    AbstractModule
  62. final def hasName: Boolean

    Permalink
    Definition Classes
    AbstractModule
  63. def hashCode(): Int

    Permalink
    Definition Classes
    Container → AbstractModule → AnyRef → Any
  64. def inputs(first: (ModuleNode[T], Int), nodesWithIndex: (ModuleNode[T], Int)*): ModuleNode[T]

    Permalink
    Definition Classes
    AbstractModule
  65. def inputs(nodes: Array[ModuleNode[T]]): ModuleNode[T]

    Permalink
    Definition Classes
    AbstractModule
  66. def inputs(nodes: ModuleNode[T]*): ModuleNode[T]

    Permalink
    Definition Classes
    AbstractModule
  67. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  68. final def isTraining(): Boolean

    Permalink
    Definition Classes
    AbstractModule
  69. var line: String

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  70. final def loadModelWeights(srcModel: Module[Float], matchAll: Boolean): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  71. final def loadWeights(weightPath: String, matchAll: Boolean): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  72. def model: AbstractModule[A, B, T]

    Permalink

    The defined model, either from buildModel() or loaded from file.

    The defined model, either from buildModel() or loaded from file.

    Definition Classes
    ZooModel
  73. val modules: ArrayBuffer[AbstractModule[Activity, Activity, T]]

    Permalink
    Definition Classes
    Container
  74. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  75. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  76. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  77. var output: B

    Permalink
    Definition Classes
    AbstractModule
  78. def parameters(): (Array[Tensor[T]], Array[Tensor[T]])

    Permalink
    Definition Classes
    Container → AbstractModule
  79. def predict(x: RDD[Sample[T]], batchPerThread: Int): RDD[Activity]

    Permalink
  80. final def predict(dataset: RDD[Sample[T]], batchSize: Int, shareBuffer: Boolean): RDD[Activity]

    Permalink
    Definition Classes
    AbstractModule
  81. final def predictClass(dataset: RDD[Sample[T]], batchSize: Int): RDD[Int]

    Permalink
    Definition Classes
    AbstractModule
  82. def predictClasses(x: RDD[Sample[T]], batchSize: Int = 1, zeroBasedLabel: Boolean = true): RDD[Int]

    Permalink

    Predict for classes.

    Predict for classes. By default, label predictions start from 0.

    x

    Prediction data, RDD of Sample.

    batchSize

    Number of samples per batch. Default is 32.

    zeroBasedLabel

    Boolean. Whether result labels start from 0. Default is true. If false, result labels start from 1.

    Definition Classes
    ZooModel
  83. final def predictImage(imageFrame: ImageFrame, outputLayer: String, shareBuffer: Boolean, batchPerPartition: Int, predictKey: String, featurePaddingParam: Option[PaddingParam[T]]): ImageFrame

    Permalink
    Definition Classes
    AbstractModule
  84. def processInputs(first: (ModuleNode[T], Int), nodesWithIndex: (ModuleNode[T], Int)*): ModuleNode[T]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  85. def processInputs(nodes: Seq[ModuleNode[T]]): ModuleNode[T]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  86. final def quantize(): Module[T]

    Permalink
    Definition Classes
    AbstractModule
  87. def release(): Unit

    Permalink
    Definition Classes
    Container → AbstractModule
  88. def reset(): Unit

    Permalink
    Definition Classes
    Container → AbstractModule
  89. def resetTimes(): Unit

    Permalink
    Definition Classes
    Container → AbstractModule
  90. final def saveCaffe(prototxtPath: String, modelPath: String, useV2: Boolean, overwrite: Boolean): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  91. final def saveDefinition(path: String, overWrite: Boolean): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  92. def saveModel(path: String, weightPath: String = null, overWrite: Boolean = false): KerasZooModel.this.type

    Permalink

    Save the model to the specified path.

    Save the model to the specified path.

    path

    The path to save the model. Local file system, HDFS and Amazon S3 are supported. HDFS path should be like "hdfs://[host]:[port]/xxx". Amazon S3 path should be like "s3a://bucket/xxx".

    weightPath

    The path to save weights. Default is null.

    overWrite

    Whether to overwrite the file if it already exists. Default is false.

    Definition Classes
    ZooModel
  93. final def saveModule(path: String, weightPath: String, overWrite: Boolean): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  94. final def saveTF(inputs: Seq[(String, Seq[Int])], path: String, byteOrder: ByteOrder, dataFormat: TensorflowDataFormat): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  95. final def saveTorch(path: String, overWrite: Boolean): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  96. final def saveWeights(path: String, overWrite: Boolean): Unit

    Permalink
    Definition Classes
    AbstractModule
  97. var scaleB: Double

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  98. var scaleW: Double

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  99. def setCheckpoint(path: String, overWrite: Boolean = true): Unit

    Permalink
  100. def setConstantGradientClipping(min: Float, max: Float): Unit

    Permalink
  101. def setEvaluateStatus(): KerasZooModel.this.type

    Permalink

    Set the model to be in evaluate status, i.e.

    Set the model to be in evaluate status, i.e. remove the effect of Dropout, etc.

    Definition Classes
    ZooModel
  102. final def setExtraParameter(extraParam: Array[Tensor[T]]): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  103. def setGradientClippingByL2Norm(clipNorm: Float): Unit

    Permalink
  104. final def setLine(line: String): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  105. final def setName(name: String): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  106. def setScaleB(b: Double): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  107. def setScaleW(w: Double): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  108. def setTensorBoard(logDir: String, appName: String): Unit

    Permalink
  109. final def setWeightsBias(newWeights: Array[Tensor[T]]): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
  110. def summary(): Unit

    Permalink

    Print out the summary of the model.

    Print out the summary of the model.

    Definition Classes
    ZooModel
  111. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  112. def toGraph(startNodes: ModuleNode[T]*): Graph[T]

    Permalink
    Definition Classes
    AbstractModule
  113. def toString(): String

    Permalink
    Definition Classes
    AbstractModule → AnyRef → Any
  114. var train: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  115. final def training(): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  116. def unFreeze(names: String*): KerasZooModel.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  117. def updateGradInput(input: A, gradOutput: B): A

    Permalink
    Definition Classes
    ZooModel → AbstractModule
  118. def updateOutput(input: A): B

    Permalink
    Definition Classes
    ZooModel → AbstractModule
  119. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  122. def zeroGradParameters(): Unit

    Permalink
    Definition Classes
    AbstractModule

Deprecated Value Members

  1. final def save(path: String, overWrite: Boolean): KerasZooModel.this.type

    Permalink
    Definition Classes
    AbstractModule
    Annotations
    @deprecated
    Deprecated

    (Since version 0.3.0) please use recommended saveModule(path, overWrite)

Inherited from ZooModel[A, B, T]

Inherited from Container[A, B, T]

Inherited from AbstractModule[A, B, T]

Inherited from InferShape

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped