com.intel.analytics.zoo.pipeline.api.keras2.layers

MaxPooling1D

class MaxPooling1D[T] extends keras.layers.MaxPooling1D[T] with Net

Max pooling operation for temporal data.

Input shape 3D tensor with shape: (batch_size, steps, features).

Output shape 3D tensor with shape: (batch_size, downsampled_steps, features).

T

Numeric type of parameter(e.g. weight, bias). Only support float/double now

Linear Supertypes
keras.layers.MaxPooling1D[T], Net, Pooling1D[T], KerasLayer[Tensor[T], Tensor[T], T], Container[Tensor[T], Tensor[T], T], AbstractModule[Tensor[T], Tensor[T], T], InferShape, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MaxPooling1D
  2. MaxPooling1D
  3. Net
  4. Pooling1D
  5. KerasLayer
  6. Container
  7. AbstractModule
  8. InferShape
  9. Serializable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MaxPooling1D(poolSize: Int = 2, strides: Int = -1, padding: String = "valid", inputShape: Shape = null)(implicit arg0: ClassTag[T], ev: TensorNumeric[T])

    poolSize

    Size of the region to which max pooling is applied. Integer. Default is 2.

    strides

    Factor by which to downscale. Integer, or -1. 2 will halve the input. If -1, it will default to poolSize. Default is -1.

    padding

    One of "valid" or "same" (case-insensitive). Default is 'valid'.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def accGradParameters(input: Tensor[T], gradOutput: Tensor[T]): Unit

    Definition Classes
    KerasLayer → AbstractModule
  7. def apply(name: String): Option[AbstractModule[Activity, Activity, T]]

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

    Definition Classes
    Any
  9. def backward(input: Tensor[T], gradOutput: Tensor[T]): Tensor[T]

    Definition Classes
    AbstractModule
  10. var backwardTime: Long

    Attributes
    protected
    Definition Classes
    AbstractModule
  11. val borderMode: String

    Definition Classes
    MaxPooling1D → Pooling1D
  12. def build(calcInputShape: Shape): Shape

    Definition Classes
    KerasLayer → InferShape
  13. def canEqual(other: Any): Boolean

    Definition Classes
    Container → AbstractModule
  14. final def checkEngineType(): MaxPooling1D.this.type

    Definition Classes
    Container → AbstractModule
  15. def clearState(): MaxPooling1D.this.type

    Definition Classes
    Container → AbstractModule
  16. final def clone(deepCopy: Boolean): AbstractModule[Tensor[T], Tensor[T], T]

    Definition Classes
    AbstractModule
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def cloneModule(): AbstractModule[Tensor[T], Tensor[T], T]

    Definition Classes
    AbstractModule
  19. def computeOutputShape(inputShape: Shape): Shape

    Definition Classes
    Pooling1D → KerasLayer → InferShape
  20. def doBuild(inputShape: Shape): AbstractModule[Tensor[T], Tensor[T], T]

    Definition Classes
    MaxPooling1D → KerasLayer
  21. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    Container → AbstractModule → AnyRef → Any
  23. final def evaluate(): MaxPooling1D.this.type

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

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

    Definition Classes
    AbstractModule
  26. def finalize(): Unit

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

    Definition Classes
    Container
  28. final def forward(input: Tensor[T]): Tensor[T]

    Definition Classes
    AbstractModule
  29. var forwardTime: Long

    Attributes
    protected
    Definition Classes
    AbstractModule
  30. def freeze(names: String*): MaxPooling1D.this.type

    Definition Classes
    Container → AbstractModule
  31. def from[T](vars: Variable[T]*)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): Variable[T]

    Build graph: some other modules point to current module

    Build graph: some other modules point to current module

    vars

    upstream variables

    returns

    Variable containing current module

    Definition Classes
    Net
  32. final def getClass(): Class[_]

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

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

    Definition Classes
    InferShape
  35. final def getName(): String

    Definition Classes
    AbstractModule
  36. final def getNumericType(): TensorDataType

    Definition Classes
    AbstractModule
  37. final def getOutputShape(): Shape

    Definition Classes
    InferShape
  38. def getParametersTable(): Table

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

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

    Definition Classes
    AbstractModule
  41. final def getScaleW(): Double

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

    Definition Classes
    Container → AbstractModule
  43. final def getWeightsBias(): Array[Tensor[T]]

    Definition Classes
    AbstractModule
  44. var gradInput: Tensor[T]

    Definition Classes
    AbstractModule
  45. final def hasName: Boolean

    Definition Classes
    AbstractModule
  46. def hashCode(): Int

    Definition Classes
    Container → AbstractModule → AnyRef → Any
  47. val inputShape: Shape

    Definition Classes
    MaxPooling1DMaxPooling1D → Pooling1D
  48. def inputs(first: (ModuleNode[T], Int), nodesWithIndex: (ModuleNode[T], Int)*): ModuleNode[T]

    Definition Classes
    KerasLayer → AbstractModule
  49. def inputs(nodes: Array[ModuleNode[T]]): ModuleNode[T]

    Definition Classes
    KerasLayer → AbstractModule
  50. def inputs(nodes: ModuleNode[T]*): ModuleNode[T]

    Definition Classes
    KerasLayer → AbstractModule
  51. def isBuilt(): Boolean

    Definition Classes
    KerasLayer → InferShape
  52. def isFrozen[T]()(implicit arg0: ClassTag[T]): Boolean

    Definition Classes
    Net
  53. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  54. def isKerasStyle(): Boolean

    Definition Classes
    KerasLayer → InferShape
  55. final def isTraining(): Boolean

    Definition Classes
    AbstractModule
  56. def labor: AbstractModule[Tensor[T], Tensor[T], T]

    Definition Classes
    KerasLayer
  57. def labor_=(value: AbstractModule[Tensor[T], Tensor[T], T]): Unit

    Definition Classes
    KerasLayer
  58. var line: String

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

    Definition Classes
    AbstractModule
  60. final def loadWeights(weightPath: String, matchAll: Boolean): MaxPooling1D.this.type

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

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

    Definition Classes
    AnyRef
  63. final def notify(): Unit

    Definition Classes
    AnyRef
  64. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  65. var output: Tensor[T]

    Definition Classes
    AbstractModule
  66. val padding: String

    One of "valid" or "same" (case-insensitive).

    One of "valid" or "same" (case-insensitive). Default is 'valid'.

  67. def parameters(): (Array[Tensor[T]], Array[Tensor[T]])

    Definition Classes
    Container → AbstractModule
  68. val poolLength: Int

    Definition Classes
    MaxPooling1D → Pooling1D
  69. val poolSize: Int

    Size of the region to which max pooling is applied.

    Size of the region to which max pooling is applied. Integer. Default is 2.

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

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

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

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

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

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

    Definition Classes
    AbstractModule
  76. def reset(): Unit

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

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

    Definition Classes
    AbstractModule
  79. final def saveDefinition(path: String, overWrite: Boolean): MaxPooling1D.this.type

    Definition Classes
    AbstractModule
  80. final def saveModule(path: String, weightPath: String, overWrite: Boolean): MaxPooling1D.this.type

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

    Definition Classes
    AbstractModule
  82. final def saveTorch(path: String, overWrite: Boolean): MaxPooling1D.this.type

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

    Definition Classes
    AbstractModule
  84. var scaleB: Double

    Attributes
    protected
    Definition Classes
    AbstractModule
  85. var scaleW: Double

    Attributes
    protected
    Definition Classes
    AbstractModule
  86. final def setExtraParameter(extraParam: Array[Tensor[T]]): MaxPooling1D.this.type

    Definition Classes
    AbstractModule
  87. final def setLine(line: String): MaxPooling1D.this.type

    Definition Classes
    AbstractModule
  88. final def setName(name: String): MaxPooling1D.this.type

    Definition Classes
    AbstractModule
  89. def setScaleB(b: Double): MaxPooling1D.this.type

    Definition Classes
    Container → AbstractModule
  90. def setScaleW(w: Double): MaxPooling1D.this.type

    Definition Classes
    Container → AbstractModule
  91. final def setWeightsBias(newWeights: Array[Tensor[T]]): MaxPooling1D.this.type

    Definition Classes
    AbstractModule
  92. val stride: Int

    Definition Classes
    MaxPooling1D → Pooling1D
  93. val strideValue: Int

    Definition Classes
    Pooling1D
  94. val strides: Int

    Factor by which to downscale.

    Factor by which to downscale. Integer, or -1. 2 will halve the input. If -1, it will default to poolSize. Default is -1.

  95. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Definition Classes
    AbstractModule
  97. def toString(): String

    Definition Classes
    AbstractModule → AnyRef → Any
  98. var train: Boolean

    Attributes
    protected
    Definition Classes
    AbstractModule
  99. final def training(): MaxPooling1D.this.type

    Definition Classes
    Container → AbstractModule
  100. def unFreeze(names: String*): MaxPooling1D.this.type

    Definition Classes
    Container → AbstractModule
  101. def updateGradInput(input: Tensor[T], gradOutput: Tensor[T]): Tensor[T]

    Definition Classes
    KerasLayer → AbstractModule
  102. def updateOutput(input: Tensor[T]): Tensor[T]

    Definition Classes
    KerasLayer → AbstractModule
  103. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  106. final def zeroGradParameters(): Unit

    Definition Classes
    AbstractModule

Deprecated Value Members

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

    Definition Classes
    AbstractModule
    Annotations
    @deprecated
    Deprecated

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

Inherited from keras.layers.MaxPooling1D[T]

Inherited from Net

Inherited from Pooling1D[T]

Inherited from KerasLayer[Tensor[T], Tensor[T], T]

Inherited from Container[Tensor[T], Tensor[T], T]

Inherited from AbstractModule[Tensor[T], Tensor[T], T]

Inherited from InferShape

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped