24template <
typename AReal>
33 for (
size_t i = 0; i <
m; i++) {
34 for (
size_t j = 0;
j <
n;
j++) {
44template <
typename AReal>
55 for (
size_t i = 0; i <
m; i++) {
56 for (
size_t j = 0;
j <
n;
j++) {
57 dY(i,
j) *= weights(i, 0);
63template <
typename AReal>
72 for (
size_t i = 0; i <
m; i++) {
74 for (
size_t j = 0;
j <
n;
j++) {
76 result +=
w * (Y(i,
j) * std::log(sig) + (1.0 - Y(i,
j)) * std::log(1.0 - sig));
84template <
typename AReal>
93 for (
size_t i = 0; i <
m; i++)
96 for (
size_t j = 0;
j <
n;
j++)
106template <
typename AReal>
115 for (
size_t i = 0; i <
m; i++) {
118 for (
size_t j = 0;
j <
n;
j++) {
121 for (
size_t j = 0;
j <
n;
j++) {
130template <
typename AReal>
139 for (
size_t i = 0; i <
m; i++)
144 for (
size_t j = 0;
j <
n;
j++) {
148 for (
size_t j = 0;
j <
n;
j++) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
static void CrossEntropyGradients(TMatrixT< AReal > &dY, const TMatrixT< AReal > &Y, const TMatrixT< AReal > &output, const TMatrixT< AReal > &weights)
static AReal SoftmaxCrossEntropy(const TMatrixT< AReal > &Y, const TMatrixT< AReal > &output, const TMatrixT< AReal > &weights)
Softmax transformation is implicitly applied, thus output should hold the linear activations of the l...
static AReal CrossEntropy(const TMatrixT< AReal > &Y, const TMatrixT< AReal > &output, const TMatrixT< AReal > &weights)
Sigmoid transformation is implicitly applied, thus output should hold the linear activations of the l...
static void MeanSquaredErrorGradients(TMatrixT< AReal > &dY, const TMatrixT< AReal > &Y, const TMatrixT< AReal > &output, const TMatrixT< AReal > &weights)
static void SoftmaxCrossEntropyGradients(TMatrixT< AReal > &dY, const TMatrixT< AReal > &Y, const TMatrixT< AReal > &output, const TMatrixT< AReal > &weights)
static AReal MeanSquaredError(const TMatrixT< AReal > &Y, const TMatrixT< AReal > &output, const TMatrixT< AReal > &weights)
create variable transformations
static uint64_t sum(uint64_t i)