MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / zeroOutSigmaXt

Method zeroOutSigmaXt

JSAT/src/jsat/classifiers/linear/SCW.java:86–94  ·  view source on GitHub ↗

More than one escape point, makes sure to zero out #Sigma_xt using the input incase of sparseness @param x_t

(final Vec x_t)

Source from the content-addressed store, hash-verified

84 * @param x_t
85 */
86 private void zeroOutSigmaXt(final Vec x_t)
87 {
88 //Zero out temp store
89 if(diagonalOnly && x_t.isSparse())//only these values will be non zero
90 for(IndexValue iv : x_t)
91 Sigma_xt.set(iv.getIndex(), 0.0);
92 else
93 Sigma_xt.zeroOut();
94 }
95
96 /**
97 * Which version of the algorithms shuld be used

Callers 1

updateMethod · 0.95

Calls 4

isSparseMethod · 0.45
setMethod · 0.45
getIndexMethod · 0.45
zeroOutMethod · 0.45

Tested by

no test coverage detected