From 2ba3c8eadb7fec89fb8392fde29261729a53ee6b Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sun, 8 Nov 2020 15:38:38 +0000 Subject: [PATCH] Updated lr cpp test to print without fmt --- test/TestLogisticRegression.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/test/TestLogisticRegression.cpp b/test/TestLogisticRegression.cpp index eda6ca635..c360542b6 100644 --- a/test/TestLogisticRegression.cpp +++ b/test/TestLogisticRegression.cpp @@ -1,7 +1,6 @@ #include "gtest/gtest.h" -//#include #include "kompute/Kompute.hpp" TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegression) @@ -73,12 +72,11 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegression) EXPECT_LT(wIn->data()[0], 0.01); EXPECT_GT(wIn->data()[1], 1.0); EXPECT_LT(bIn->data()[0], 0.0); - EXPECT_LT(bIn->data()[0], 0.0); - // SPDLOG_WARN("Result wIn: {}, bIn: {}, loss: {}", - // wIn->data(), - // bIn->data(), - // lOut->data()); + SPDLOG_WARN("Result wIn i: {}, wIn j: {}, bIn: {}", + wIn->data()[0], + wIn->data()[1], + bIn->data()[0]); } TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegressionManualCopy) @@ -156,8 +154,8 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegressionManualCopy) EXPECT_GT(wIn->data()[1], 1.0); EXPECT_LT(bIn->data()[0], 0.0); - // SPDLOG_WARN("Result wIn: {}, bIn: {}, loss: {}", - // wIn->data(), - // bIn->data(), - // lOut->data()); + SPDLOG_WARN("Result wIn i: {}, wIn j: {}, bIn: {}", + wIn->data()[0], + wIn->data()[1], + bIn->data()[0]); }