Stan Math Library
5.0.0
Automatic Differentiation
|
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/fun/log1p.hpp>
#include <stan/math/prim/fun/binary_log_loss.hpp>
#include <cmath>
Go to the source code of this file.
Namespaces | |
namespace | stan |
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
namespace | stan::math |
Matrices and templated mathematical functions. | |
Functions | |
var | stan::math::binary_log_loss (int y, const var &y_hat) |
The log loss function for variables (stan). | |
template<typename Mat , require_eigen_t< Mat > * = nullptr> | |
auto | stan::math::binary_log_loss (int y, const var_value< Mat > &y_hat) |
Overload with int and var_value<Matrix> | |
template<typename StdVec , typename Mat , require_eigen_t< Mat > * = nullptr, require_st_integral< StdVec > * = nullptr> | |
auto | stan::math::binary_log_loss (const StdVec &y, const var_value< Mat > &y_hat) |
Overload with var_value<Matrix> for std::vector<int> and std::vector<std::vector<int>> | |