6710396acaf62b40ba01fadd9d488d6641995d83,keras/layers/pooling.py,_Pooling1D,__init__,#_Pooling1D#Any#Any#Any#,14
Before Change
stride = pool_length
self.pool_length = pool_length
self.stride = stride
self.st = (self.stride, 1)
self.pool_size = (pool_length, 1)
if border_mode not in {"valid", "same"}:
raise ValueError("`border_mode` must be in {valid, same}.")
self.border_mode = border_mode
self.input_spec = [InputSpec(ndim=3)]
def get_output_shape_for(self, input_shape):
length = conv_output_length(input_shape[1], self.pool_length,
After Change
Abstract class for different pooling 1D layers.
def __init__(self, pool_size=2, strides=None,
padding="valid", **kwargs):
super(_Pooling1D, self).__init__(**kwargs)
if strides is None:
strides = pool_size
self.pool_size = conv_utils.normalize_tuple(pool_size, 1, "pool_size")
self.strides = conv_utils.normalize_tuple(strides, 1, "strides")
self.padding = conv_utils.normalize_padding(padding)
self.input_spec = [InputSpec(ndim=3)]
def get_output_shape_for(self, input_shape):
length = conv_utils.conv_output_length(input_shape[1], self.pool_size,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: keras-team/keras
Commit Name: 6710396acaf62b40ba01fadd9d488d6641995d83
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/layers/pooling.py
Class Name: _Pooling1D
Method Name: __init__
Project Name: keras-team/keras
Commit Name: 6710396acaf62b40ba01fadd9d488d6641995d83
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/layers/pooling.py
Class Name: _Pooling1D
Method Name: __init__
Project Name: keras-team/keras
Commit Name: 6710396acaf62b40ba01fadd9d488d6641995d83
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/layers/pooling.py
Class Name: _Pooling3D
Method Name: __init__
Project Name: keras-team/keras
Commit Name: 6710396acaf62b40ba01fadd9d488d6641995d83
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/layers/pooling.py
Class Name: _Pooling2D
Method Name: __init__