1#ifndef STAN_MATH_FWD_FUN_BINARY_LOG_LOSS_HPP
2#define STAN_MATH_FWD_FUN_BINARY_LOG_LOSS_HPP
17 y_hat.
d_ / (1.0 - y_hat.
val_));
fvar< T > binary_log_loss(int y, const fvar< T > &y_hat)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Scalar val_
The value of this variable.
Scalar d_
The tangent (derivative) of this variable.
This template class represents scalars used in forward-mode automatic differentiation,...