Expression Templates Library (ETL)
Functions
mse.hpp File Reference

Standard implementation of the Mean Squared Error reduction. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename O , typename L >
value_t< O > etl::impl::standard::mse_loss (const O &output, const L &labels, value_t< O > scale)
 Returns the Mean Squared Error Loss. More...
 
template<typename O , typename L >
value_t< O > etl::impl::standard::mse_error (const O &output, const L &labels, value_t< O > scale)
 Returns the Mean Squared Error Error. More...
 
template<typename O , typename L >
std::pair< value_t< O >, value_t< O > > etl::impl::standard::mse (const O &output, const L &labels, value_t< O > alpha, value_t< O > beta)
 Returns the Mean Squared Error Loss and Error. More...
 

Detailed Description

Standard implementation of the Mean Squared Error reduction.

Function Documentation

◆ mse()

template<typename O , typename L >
std::pair<value_t<O>, value_t<O> > etl::impl::standard::mse ( const O &  output,
const L &  labels,
value_t< O >  alpha,
value_t< O >  beta 
)

Returns the Mean Squared Error Loss and Error.

Parameters
outputThe outputs
labelsThe labels
Returns
The MSE Error of the output and labels

◆ mse_error()

template<typename O , typename L >
value_t<O> etl::impl::standard::mse_error ( const O &  output,
const L &  labels,
value_t< O >  scale 
)

Returns the Mean Squared Error Error.

Parameters
outputThe outputs
labelsThe labels
Returns
The MSE Error of the output and labels

◆ mse_loss()

template<typename O , typename L >
value_t<O> etl::impl::standard::mse_loss ( const O &  output,
const L &  labels,
value_t< O >  scale 
)

Returns the Mean Squared Error Loss.

Parameters
outputThe outputs
labelsThe labels
Returns
The MSE Loss of the output and labels