-
3.39.22
|
Functor for the SKPERM projector. More...
Public Member Functions | |
def | __init__ (self, shape, k, normalized=True, pos=False) |
Projector constructor. More... | |
Public Member Functions inherited from pyfaust.proj.proj_gen | |
def | __init__ (self, shape) |
def | __call__ (self, M) |
Public Attributes | |
constraint | |
Public Attributes inherited from pyfaust.proj.proj_gen | |
shape | |
Functor for the SKPERM projector.
Examples
[-0.0083095, -3.38725936, -0.78484126, -0.4883618 ], \ [-1.48942563, -1.71787215, -0.84000212, -3.71752454], \ [-0.88957883, -0.19107863, -5.92900636, -6.51064175]])
def pyfaust.proj.skperm.__init__ | ( | self, | |
shape, | |||
k, | |||
normalized = True , |
|||
pos = False |
|||
) |
Projector constructor.
shape | (tuple(int,int)) the size of the input matrix. |
k | (int) the integer sparsity (number of nonzeros) targeted per-row and per-column. |
normalized | (bool) True to normalize the projection image according to its Frobenius norm. |
pos | (bool) True to skip negative values (replaced by zero) of the matrix to project. |
pyfaust.proj.skperm.constraint |