cogpy.decomposition.embed

Module for embedding techniques

Functions

chan2grid(chan_embed, bad_dims[, val])

embed_chan(x_embed, kernel_shape, bad_dims)

generic_kernel(x, kernel_shape)

extracts windows of shape=kernel_shape around each element of x that is not close to boundaries of x such that kernel around the element lies inside x.

pad_left(kernel_shape, ndim[, val])

roll_dim(x, nroll)

reshapes the array x, for example if x.shape = (3,6,9,0) roll_dim(x,-1).shape = (6,9,0,3) :param x: :type x: array (arbitrary dimensions) :param nroll: :type nroll: int