Description Usage Arguments Examples
evaluate if the algorithm converged by comparing two successive belongings matrices. Calculate the absolute difference between the matrices and then calculate the mean of each row. If all the values of the final vector are below the fixed tolerance, then return True, else return False
1 | evaluateMatrices(mat1, mat2, tol)
|
mat1 |
A n X k matrix giving for each observation n, its probability to belong to the cluster k at iteration i |
mat2 |
A n X k matrix giving for each observation n, its probability to belong to the cluster k at iteration i+1 |
tol |
a float representing the algorithm tolerance |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.