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)
| 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 |
no outgoing calls