nlp
1.2.0
nlp
/
com.londogard.nlp.meachinelearning.loss
/
LogisticLoss
Logistic
Loss
public
final
class
LogisticLoss
Content copied to clipboard
A Logistic Loss Function
Constructors
Functions
Constructors
Logistic
Loss
Link copied to clipboard
public
LogisticLoss
LogisticLoss
(
)
Content copied to clipboard
Functions
gradient
Link copied to clipboard
public
final
NDArray
<
Float
,
D2
>
gradient
(
NDArray
<
Float
,
D2
>
yPred
,
MultiArray
<
Float
,
D2
>
XT
,
NDArray
<
Float
,
D2
>
y
)
Content copied to clipboard
loss
Link copied to clipboard
public
final
Float
loss
(
NDArray
<
Float
,
D2
>
yPred
,
MultiArray
<
Float
,
D2
>
X
,
NDArray
<
Float
,
D2
>
yTransposed
,
NDArray
<
Float
,
D2
>
yNegTransposed
)
Content copied to clipboard