You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# note: gammaVec equals eta + diag(Lambda) in the Supplement
gammaVec= L2const + XtXdiag * pdrop / (1.0-pdrop) # without zero-diag constraint
if zeroDiagConstraint:
KK = VVt.T.dot(GG).dot(VVt)
gammaVec= np.linalg.solve( CC * KK , np.diag(KK))
HH=CC *(-gammaVec) # Note: it is elementwise multiplication instead of matrix multiplication
HH[ii_diag]+=1.0
UU=HH.dot( VVt.T.dot(GG) )
Hi Herald, I am not sure if I should post my questions here, but any of your explanations would be extremely appreciated and helpful.
Based on the supplement of the paper, with no constraint, eta should be zero, and gemmaVec should be diag(XtX), but why do we add L2 constant here on gammaVec?
Additionally, why would we self increase the diagonal of HH by one? I do not think this appears on the formula...
The text was updated successfully, but these errors were encountered:
Hi Herald, I am not sure if I should post my questions here, but any of your explanations would be extremely appreciated and helpful.
Based on the supplement of the paper, with no constraint, eta should be zero, and gemmaVec should be
diag(XtX)
, but why do we add L2 constant here on gammaVec?Additionally, why would we self increase the diagonal of HH by one? I do not think this appears on the formula...
The text was updated successfully, but these errors were encountered: