synthcity.plugins.core.models.mbi.identity module
- class EkteloMatrix(*args: Any, **kwargs: Any)
Bases:
scipy.sparse.linalg.LinearOperator
An EkteloMatrix is a linear transformation that can compute matrix-vector products
- asDict()
- dense_matrix()
return the dense representation of this matrix, as a 2D numpy array
- diag()
- gram()
Compute the Gram matrix of the given matrix. For a matrix Q, the gram matrix is defined as Q^T Q
- inv()
- property ndim
- pinv()
- sensitivity()
- sparse_matrix()
return the sparse representation of this matrix, as a scipy matrix
- sum(axis=None)
- trace()
- class Identity(*args: Any, **kwargs: Any)
Bases:
synthcity.plugins.core.models.mbi.identity.EkteloMatrix
- asDict()
- dense_matrix()
return the dense representation of this matrix, as a 2D numpy array
- diag()
- gram()
Compute the Gram matrix of the given matrix. For a matrix Q, the gram matrix is defined as Q^T Q
- inv()
- property matrix
- property ndim
- pinv()
- sensitivity()
- sparse_matrix()
return the sparse representation of this matrix, as a scipy matrix
- sum(axis=None)
- trace()
- class Ones(*args: Any, **kwargs: Any)
Bases:
synthcity.plugins.core.models.mbi.identity.EkteloMatrix
A m x n matrix of all ones
- asDict()
- dense_matrix()
return the dense representation of this matrix, as a 2D numpy array
- diag()
- gram()
Compute the Gram matrix of the given matrix. For a matrix Q, the gram matrix is defined as Q^T Q
- inv()
- property matrix
- property ndim
- pinv()
- sensitivity()
- sparse_matrix()
return the sparse representation of this matrix, as a scipy matrix
- sum(axis=None)
- trace()
- class Product(*args: Any, **kwargs: Any)
Bases:
synthcity.plugins.core.models.mbi.identity.EkteloMatrix
- asDict()
- dense_matrix()
return the dense representation of this matrix, as a 2D numpy array
- diag()
- gram()
Compute the Gram matrix of the given matrix. For a matrix Q, the gram matrix is defined as Q^T Q
- inv()
- property matrix
- property ndim
- pinv()
- sensitivity()
- sparse_matrix()
return the sparse representation of this matrix, as a scipy matrix
- sum(axis=None)
- trace()
- class Sum(*args: Any, **kwargs: Any)
Bases:
synthcity.plugins.core.models.mbi.identity.EkteloMatrix
Class for the Sum of matrices
- asDict()
- dense_matrix()
return the dense representation of this matrix, as a 2D numpy array
- diag()
- gram()
Compute the Gram matrix of the given matrix. For a matrix Q, the gram matrix is defined as Q^T Q
- inv()
- property matrix
- property ndim
- pinv()
- sensitivity()
- sparse_matrix()
return the sparse representation of this matrix, as a scipy matrix
- sum(axis=None)
- trace()
- class Weighted(*args: Any, **kwargs: Any)
Bases:
synthcity.plugins.core.models.mbi.identity.EkteloMatrix
Class for multiplication by a constant
- asDict()
- dense_matrix()
return the dense representation of this matrix, as a 2D numpy array
- diag()
- gram()
Compute the Gram matrix of the given matrix. For a matrix Q, the gram matrix is defined as Q^T Q
- inv()
- property matrix
- property ndim
- pinv()
- sensitivity()
- sparse_matrix()
return the sparse representation of this matrix, as a scipy matrix
- sum(axis=None)
- trace()
- class_to_dict(inst, ignore_list=[], attr_prefix='')
- Writes state of class instance as a dict
Includes both attributes and properties (i.e. those methods labeled with @property) Note: because this capture properties, it should be viewed as a snapshot of instance state
- Parameters
inst – instance to represent as dict
ignore_list – list of attr
- Returns
dict