7 #include <shogun/labels/Labels.h>
8 #include <shogun/labels/RegressionLabels.h>
9 #include <shogun/labels/MulticlassLabels.h>
10 #include <shogun/labels/BinaryLabels.h>
11 #include "../util/utils.h"
29 const vector<float>& weights=vector<float>());
36 const vector<float>& weights=vector<float>());
39 float mse(
const VectorXf& y,
const VectorXf& yhat, VectorXf& loss,
40 const vector<float>& weights=vector<float>() );
42 float mse_label(
const VectorXf& y,
const shared_ptr<CLabels>& labels, VectorXf& loss,
43 const vector<float>& weights=vector<float>() );
45 VectorXf
log_loss(
const VectorXf& y,
const VectorXf& yhat,
46 const vector<float>& class_weights=vector<float>());
48 VectorXf
log_loss(
const VectorXf& y, shared_ptr<CLabels>& labels,
49 const vector<float>& class_weights=vector<float>());
52 float mean_log_loss(
const VectorXf& y,
const VectorXf& yhat, VectorXf& loss,
53 const vector<float>& class_weights = vector<float>());
55 float log_loss_label(
const VectorXf& y,
const shared_ptr<CLabels>& labels, VectorXf& loss,
56 const vector<float>& class_weights=vector<float>());
58 VectorXf
d_log_loss(
const VectorXf& y,
const VectorXf& yhat,
59 const vector<float>& class_weights=vector<float>());
61 VectorXf
d_log_loss(
const VectorXf& y, shared_ptr<CLabels>& labels,
62 const vector<float>& class_weights=vector<float>());
70 VectorXf
multi_log_loss(
const VectorXf& y,
const ArrayXXf& confidences,
71 const vector<float>& class_weights=vector<float>());
74 const vector<float>& class_weights=vector<float>());
78 const vector<float>& class_weights=vector<float>());
80 VectorXf
multi_log_loss(
const VectorXf& y, shared_ptr<CLabels>& labels,
81 const vector<float>& class_weights=vector<float>());
85 const vector<float>& class_weights=vector<float>());
89 const vector<float>& class_weights=vector<float>() );
92 VectorXf& loss,
const vector<float>& class_weights=vector<float>() );
94 float zero_one_loss(
const VectorXf& y,
const VectorXf& yhat, VectorXf& loss,
95 const vector<float>& class_weights=vector<float>() );
98 float zero_one_loss_label(
const VectorXf& y,
const shared_ptr<CLabels>& labels, VectorXf& loss,
99 const vector<float>& class_weights=vector<float>() );
125 const VectorXf& yhat, VectorXf& loss,
126 const vector<float>& class_weights);
128 const shared_ptr<CLabels>& labels, VectorXf& loss,
129 const vector<float>& class_weights);
VectorXf multi_log_loss(const VectorXf &y, const ArrayXXf &confidences, const vector< float > &class_weights)
multinomial log loss
VectorXf d_squared_difference(const VectorXf &y, const VectorXf &yhat)
float bal_zero_one_loss_label(const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
float false_positive_loss(const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
float zero_one_loss_label(const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
1 - accuracy
VectorXf log_loss(const VectorXf &y, const VectorXf &yhat, const vector< float > &class_weights)
VectorXf squared_difference(const VectorXf &y, const VectorXf &yhat)
VectorXf d_log_loss(const VectorXf &y, const VectorXf &yhat, const vector< float > &class_weights)
float mse_label(const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &weights)
float multi_log_loss_label(const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
multinomial log loss
float mean_multi_log_loss(const VectorXf &y, const ArrayXXf &confidences, VectorXf &loss, const vector< float > &class_weights)
float bal_zero_one_loss(const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
1 - balanced accuracy
float mean_log_loss(const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
log loss
float zero_one_loss(const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &class_weights)
float false_positive_loss_label(const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
false positive rate
float mse(const VectorXf &y, const VectorXf &yhat, VectorXf &loss, const vector< float > &weights)
mean squared error
float log_loss_label(const VectorXf &y, const shared_ptr< CLabels > &labels, VectorXf &loss, const vector< float > &class_weights)
log loss
VectorXf d_multi_log_loss(const VectorXf &y, shared_ptr< CLabels > &labels, const vector< float > &class_weights)
derivative of multinomial log loss