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

Method setLoss

JSAT/src/jsat/classifiers/linear/SDCA.java:272–275  ·  view source on GitHub ↗

Sets the loss function used for the model. The loss function controls whether or not regression, binary classification, or multi-class classification is supported. NOTE: SDCA requires that the given loss function implement the {@link LossFunc#getConjugate(double, double, double) conjugat

(LossFunc loss)

Source from the content-addressed store, hash-verified

270 * @param loss the loss function to use
271 */
272 public void setLoss(LossFunc loss)
273 {
274 this.loss = loss;
275 }
276
277 /**
278 * Returns the loss function in use

Callers 13

testScaleMethod · 0.95
testSetCMethod · 0.95
testWarmOtherMethod · 0.95
SDCAMethod · 0.95
SMIDASMethod · 0.45

Calls

no outgoing calls