40 float calculateMetric(
const sTensor& targets,
const sTensor& predictions)
override;
42 virtual sTensor calculateLoss(
const sTensor& targets,
const sTensor& predictions) = 0;
50 sTensor calculateLoss(
const sTensor& targets,
const sTensor& predictions)
override;
62 sTensor calculateLoss(
const sTensor& targets,
const sTensor& predictions)
override;
78 sTensor calculateLoss(
const sTensor& targets,
const sTensor& predictions)
override;
Class representing the Binary Cross Entropy.
Definition: loss.h:60
std::string getShortName() const override
Short string identifier of the metric.
Definition: binary_cross_entropy.cpp:28
Class representing the Categorical Cross Entropy.
Definition: loss.h:76
std::string getShortName() const override
Short string identifier of the metric.
Definition: categorical_cross_entropy.cpp:10
Abstract class representing a loss function.
Definition: loss.h:21
float calculateMetric(const sTensor &targets, const sTensor &predictions) override
Defines the method inherited from abstract Metric parent.
Definition: loss.cpp:13
Loss()
Constructor for the Loss class.
Definition: loss.cpp:10
Class representing the Mean Squared Error.
Definition: loss.h:48
std::string getShortName() const override
Short string identifier of the metric.
Definition: mean_squared_error.cpp:10
An abstract class to represent metrics.
Definition: metric.h:19
Header file declaring different metrics.
Header file declaring the Tensor class to represent multidimensional arrays.