MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / _expand_mat

Method _expand_mat

neural_network/convolution_neural_network.py:180–185  ·  view source on GitHub ↗
(self, data_mat)

Source from the content-addressed store, hash-verified

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

Callers 1

trainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected