@@ -117,7 +117,7 @@ regressionSpec(std::string dependentVariable,
117
117
rows, 5 , memoryLimit, 1 , categoricalFieldNames, true ,
118
118
test::CTestTmpDir::tmpDir (), " ml" , " regression" , parameters)};
119
119
120
- LOG_DEBUG (<< " spec =\n " << spec);
120
+ LOG_TRACE (<< " spec =\n " << spec);
121
121
122
122
return std::make_unique<api::CDataFrameAnalysisSpecification>(spec);
123
123
}
@@ -294,7 +294,7 @@ void CDataFrameAnalyzerTest::testWithoutControlMessages() {
294
294
analyzer.run ();
295
295
296
296
rapidjson::Document results;
297
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
297
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
298
298
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
299
299
300
300
auto expectedScore = expectedScores.begin ();
@@ -340,7 +340,7 @@ void CDataFrameAnalyzerTest::testRunOutlierDetection() {
340
340
analyzer.handleRecord (fieldNames, {" " , " " , " " , " " , " " , " " , " $" });
341
341
342
342
rapidjson::Document results;
343
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
343
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
344
344
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
345
345
346
346
auto expectedScore = expectedScores.begin ();
@@ -394,7 +394,7 @@ void CDataFrameAnalyzerTest::testRunOutlierDetectionPartitioned() {
394
394
analyzer.handleRecord (fieldNames, {" " , " " , " " , " " , " " , " " , " $" });
395
395
396
396
rapidjson::Document results;
397
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
397
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
398
398
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
399
399
400
400
auto expectedScore = expectedScores.begin ();
@@ -441,7 +441,7 @@ void CDataFrameAnalyzerTest::testRunOutlierFeatureInfluences() {
441
441
analyzer.handleRecord (fieldNames, {" " , " " , " " , " " , " " , " " , " $" });
442
442
443
443
rapidjson::Document results;
444
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
444
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
445
445
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
446
446
447
447
auto expectedFeatureInfluence = expectedFeatureInfluences.begin ();
@@ -492,7 +492,7 @@ void CDataFrameAnalyzerTest::testRunOutlierDetectionWithParams() {
492
492
analyzer.handleRecord (fieldNames, {" " , " " , " " , " " , " " , " " , " $" });
493
493
494
494
rapidjson::Document results;
495
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
495
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
496
496
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
497
497
498
498
auto expectedScore = expectedScores.begin ();
@@ -530,7 +530,7 @@ void CDataFrameAnalyzerTest::testRunBoostedTreeTraining() {
530
530
analyzer.handleRecord (fieldNames, {" " , " " , " " , " " , " " , " " , " $" });
531
531
532
532
rapidjson::Document results;
533
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
533
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
534
534
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
535
535
536
536
auto expectedPrediction = expectedPredictions.begin ();
@@ -540,7 +540,7 @@ void CDataFrameAnalyzerTest::testRunBoostedTreeTraining() {
540
540
CPPUNIT_ASSERT (expectedPrediction != expectedPredictions.end ());
541
541
CPPUNIT_ASSERT_DOUBLES_EQUAL (
542
542
*expectedPrediction,
543
- result[" row_results" ][" results" ][" ml" ][" prediction " ].GetDouble (),
543
+ result[" row_results" ][" results" ][" ml" ][" c5_prediction " ].GetDouble (),
544
544
1e-4 * std::fabs (*expectedPrediction));
545
545
++expectedPrediction;
546
546
CPPUNIT_ASSERT (result.HasMember (" progress_percent" ) == false );
@@ -584,7 +584,7 @@ void CDataFrameAnalyzerTest::testRunBoostedTreeTrainingWithParams() {
584
584
analyzer.handleRecord (fieldNames, {" " , " " , " " , " " , " " , " " , " $" });
585
585
586
586
rapidjson::Document results;
587
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
587
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
588
588
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
589
589
590
590
auto expectedPrediction = expectedPredictions.begin ();
@@ -594,7 +594,7 @@ void CDataFrameAnalyzerTest::testRunBoostedTreeTrainingWithParams() {
594
594
CPPUNIT_ASSERT (expectedPrediction != expectedPredictions.end ());
595
595
CPPUNIT_ASSERT_DOUBLES_EQUAL (
596
596
*expectedPrediction,
597
- result[" row_results" ][" results" ][" ml" ][" prediction " ].GetDouble (),
597
+ result[" row_results" ][" results" ][" ml" ][" c5_prediction " ].GetDouble (),
598
598
1e-4 * std::fabs (*expectedPrediction));
599
599
++expectedPrediction;
600
600
CPPUNIT_ASSERT (result.HasMember (" progress_percent" ) == false );
@@ -760,7 +760,7 @@ void CDataFrameAnalyzerTest::testRoundTripDocHashes() {
760
760
{" " , " " , " " , " " , " " , " " , " $" });
761
761
762
762
rapidjson::Document results;
763
- rapidjson::ParseResult ok (results.Parse (output.str (). c_str () ));
763
+ rapidjson::ParseResult ok (results.Parse (output.str ()));
764
764
CPPUNIT_ASSERT (static_cast <bool >(ok) == true );
765
765
766
766
int expectedHash{0 };
0 commit comments