(self, data_mat)
| 178 | return data_expanded |
| 179 | |
| 180 | def _expand_mat(self, data_mat): |
| 181 | # expanding matrix to one dimension list |
| 182 | data_mat = np.asarray(data_mat) |
| 183 | shapes = np.shape(data_mat) |
| 184 | data_expanded = data_mat.reshape(1, shapes[0] * shapes[1]) |
| 185 | return data_expanded |
| 186 | |
| 187 | def _calculate_gradient_from_pool( |
| 188 | self, out_map, pd_pool, num_map, size_map, size_pooling |