Description Usage Arguments Value Author(s) Examples
A function to calculate the cost of the objective function
1 | cost(W,init_list,lambda=0.2)
|
W |
The matrix to be factorized |
init_list |
A list containing the updated results in this iteration |
lambda |
A parameter to set the relative weight of the sparsity constraint |
A number indicating the total cost of the objective function
Xiaoyao Yin
1 2 3 4 5 6 7 | W <- simu_data_generation()
init_list <- initialization(W,k=5,l=4)
update_L_list <- update_L(W,init_list)
update_B_list <- update_B(W,update_L_list)
update_R_list <- update_R(W,update_B_list)
update_C_list <- update_C(W,update_R_list,lambda=0.2,rho=1.1)
temp_cost <- cost(W,init_list,lambda=0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.