MLask 1.0.0
A custom c++ deep learning library
Loading...
Searching...
No Matches
mlask::ErrorFunction Concept Reference

Concept representing an error function that contains a functor inside it @detials a class that needs to have an operator () with two float_t args, and which returns float_t(error) More...

#include <ErrorFunction.hpp>

Concept definition

template<typename err>
concept mlask::ErrorFunction = requires(err e, float_t result, float_t expected){
{ std::as_const(e)(result, expected) } -> std::same_as<float_t>;
}
Concept representing an error function that contains a functor inside it @detials a class that needs ...
Definition ErrorFunction.hpp:12
float float_t
Definition types.hpp:12

Detailed Description

Concept representing an error function that contains a functor inside it @detials a class that needs to have an operator () with two float_t args, and which returns float_t(error)