25 #ifndef LOSSTESTS_HPP_
26 #define LOSSTESTS_HPP_
29 #include <gtest/gtest.h>
32 #define private public
44 target_y = MAKE_MATRIX_PTR(
float, 4, 1);
51 (*target_y) << 2.0, 3.0, 4.0, 5.0;
52 (*predicted_y) << 1.0, 2.0, 3.0, 4.0;
71 target_y = MAKE_MATRIX_PTR(
float, 4,1);
79 (*target_y) << .4, .1, .25, .25;
80 (*predicted_y1) << .25, .25, .25, .25;
81 (*predicted_y2) << .4, .1, .1, .4;
103 target_y = MAKE_MATRIX_PTR(
float, 3, 2);
110 (*target_y) << 0.1, 0.2, 0.3, 0.5, 0.6, 0.1;
111 (*predicted_y) << 0.2, 0.2, 0.4, 0.4, 0.5, 0.6;
mic::types::MatrixPtr< float > predicted_y
Test Fixture - two predictions of size 4x1, floats.
Test Fixture - two vectors of size 4x1, floats.
mic::types::MatrixPtr< float > target_y
mic::types::MatrixPtr< float > target_y
mic::types::MatrixPtr< float > predicted_y1
Test Fixture - two vectors of size 3x2, floats.
mic::types::MatrixPtr< float > predicted_y
mic::types::MatrixPtr< float > target_y
mic::types::MatrixPtr< float > predicted_y2