| NMFClusteringAlgFactor(DataFrame, Int32, DoubleMatrix, DoubleMatrix) Method |
Performs the NMF V ~ WH using the specified initial values for W and H.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public bool Factor(
DataFrame data,
int k,
DoubleMatrix w,
DoubleMatrix h
)
Public Function Factor (
data As DataFrame,
k As Integer,
w As DoubleMatrix,
h As DoubleMatrix
) As Boolean
public:
bool Factor(
DataFrame^ data,
int k,
DoubleMatrix^ w,
DoubleMatrix^ h
)
member Factor :
data : DataFrame *
k : int *
w : DoubleMatrix *
h : DoubleMatrix -> bool
Parameters
- data DataFrame
- Data to factor.
- k Int32
- The rank of the factorization which is the number of
columns in H.
- w DoubleMatrix
- Initial value for W.
- h DoubleMatrix
- Initial value for H.
Return Value
BooleanTrue if the algorithm converged.
Exceptions Exception | Condition |
---|
ArgumentException | Thrown if k >= the number of columns
in data, or if data, w, and h do not have compatible sizes. |
See Also