All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fregata.loss.LossFunction.scala Maven / Gradle / Ivy

The newest version!
package fregata.loss

import fregata._

/**
 * Created by takun on 16/9/19.
 */
trait LossFunction extends Serializable{
  def of(data:Iterable[(Num,Num,Num)]) : Num
  def calculate(label:Num,pred_label:Num,prob:Num) : Num
  def gradient(x:Vector,predict:Num,label:Num) : Num
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy