Skip to content

Commit

Permalink
fix MSVC float literal warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
headupinclouds committed May 7, 2017
1 parent 0fea134 commit ce58a48
Show file tree
Hide file tree
Showing 2 changed files with 506 additions and 506 deletions.
102 changes: 51 additions & 51 deletions src/lib/xgboostcpp/ut/boston_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,57 @@ std::vector<std::vector<float>> get_boston_test()
{
static std::vector<std::vector<float>> boston_test
{
{0.75026,0,8.14,0,0.538,5.924,94.1,4.3996,4,307,21,394.33,16.3,15.6,},
{0.05479,33,2.18,0,0.472,6.616,58.1,3.37,7,222,18.4,393.36,8.93,28.4,},
{0.14052,0,10.59,0,0.489,6.375,32.3,3.9454,4,277,18.6,385.81,9.38,28.1,},
{0.03049,55,3.78,0,0.484,6.874,28.1,6.4654,5,370,17.6,387.97,4.61,31.2,},
{23.6482,0,18.1,0,0.671,6.38,96.2,1.3861,24,666,20.2,396.9,23.69,13.1,},
{0.0578,0,2.46,0,0.488,6.98,58.4,2.829,3,193,17.8,396.9,5.04,37.2,},
{0.06899,0,25.65,0,0.581,5.87,69.7,2.2577,2,188,19.1,389.15,14.37,22,},
{8.15174,0,18.1,0,0.7,5.39,98.9,1.7281,24,666,20.2,396.9,20.85,11.5,},
{11.1081,0,18.1,0,0.668,4.906,100,1.1742,24,666,20.2,396.9,34.77,13.8,},
{0.06588,0,2.46,0,0.488,7.765,83.3,2.741,3,193,17.8,395.56,7.56,39.8,},
{0.03502,80,4.95,0,0.411,6.861,27.9,5.1167,4,245,19.2,396.9,3.33,28.5,},
{1.23247,0,8.14,0,0.538,6.142,91.7,3.9769,4,307,21,396.9,18.72,15.2,},
{0.3692,0,9.9,0,0.544,6.567,87.3,3.6023,4,304,18.4,395.69,9.28,23.8,},
{0.03466,35,6.06,0,0.4379,6.031,23.3,6.6407,1,304,16.9,362.25,7.83,19.4,},
{0.05372,0,13.92,0,0.437,6.549,51,5.9604,4,289,16,392.85,7.39,27.1,},
{0.11747,12.5,7.87,0,0.524,6.009,82.9,6.2267,5,311,15.2,396.9,13.27,18.9,},
{18.811,0,18.1,0,0.597,4.628,100,1.5539,24,666,20.2,28.79,34.37,17.9,},
{0.03578,20,3.33,0,0.4429,7.82,64.5,4.6947,5,216,14.9,387.31,3.76,45.4,},
{2.15505,0,19.58,0,0.871,5.628,100,1.5166,5,403,14.7,169.27,16.65,15.6,},
{0.02731,0,7.07,0,0.469,6.421,78.9,4.9671,2,242,17.8,396.9,9.14,21.6,},
{0.09512,0,12.83,0,0.437,6.286,45,4.5026,5,398,18.7,383.23,8.94,21.4,},
{4.34879,0,18.1,0,0.58,6.167,84,3.0334,24,666,20.2,396.9,16.29,19.9,},
{0.54452,0,21.89,0,0.624,6.151,97.9,1.6687,4,437,21.2,396.9,18.46,17.8,},
{5.82401,0,18.1,0,0.532,6.242,64.7,3.4242,24,666,20.2,396.9,10.74,23,},
{2.73397,0,19.58,0,0.871,5.597,94.9,1.5257,5,403,14.7,351.85,21.45,15.4,},
{24.8017,0,18.1,0,0.693,5.349,96,1.7028,24,666,20.2,396.9,19.77,8.3,},
{1.27346,0,19.58,1,0.605,6.25,92.6,1.7984,5,403,14.7,338.92,5.5,27,},
{0.66351,20,3.97,0,0.647,7.333,100,1.8946,5,264,13,383.29,7.79,36,},
{0.49298,0,9.9,0,0.544,6.635,82.5,3.3175,4,304,18.4,396.9,4.54,22.8,},
{0.05023,35,6.06,0,0.4379,5.706,28.4,6.6407,1,304,16.9,394.02,12.43,17.1,},
{0.06724,0,3.24,0,0.46,6.333,17.2,5.2146,4,430,16.9,375.21,7.34,22.6,},
{0.06076,0,11.93,0,0.573,6.976,91,2.1675,1,273,21,396.9,5.64,23.9,},
{3.69311,0,18.1,0,0.713,6.376,88.4,2.5671,24,666,20.2,391.43,14.65,17.7,},
{0.44178,0,6.2,0,0.504,6.552,21.4,3.3751,8,307,17.4,380.34,3.76,31.5,},
{13.6781,0,18.1,0,0.74,5.935,87.9,1.8206,24,666,20.2,68.95,34.02,8.4,},
{8.49213,0,18.1,0,0.584,6.348,86.1,2.0527,24,666,20.2,83.45,17.64,14.5,},
{6.71772,0,18.1,0,0.713,6.749,92.6,2.3236,24,666,20.2,0.32,17.44,13.4,},
{0.38735,0,25.65,0,0.581,5.613,95.6,1.7572,2,188,19.1,359.29,27.26,15.7,},
{0.17783,0,9.69,0,0.585,5.569,73.5,2.3999,6,391,19.2,395.77,15.1,17.5,},
{51.1358,0,18.1,0,0.597,5.757,100,1.413,24,666,20.2,2.6,10.11,15,},
{2.81838,0,18.1,0,0.532,5.762,40.3,4.0983,24,666,20.2,392.92,10.42,21.8,},
{5.66637,0,18.1,0,0.74,6.219,100,2.0048,24,666,20.2,395.69,16.59,18.4,},
{0.52058,0,6.2,1,0.507,6.631,76.5,4.148,8,307,17.4,388.45,9.54,25.1,},
{2.14918,0,19.58,0,0.871,5.709,98.5,1.6232,5,403,14.7,261.95,15.79,19.4,},
{0.20608,22,5.86,0,0.431,5.593,76.5,7.9549,7,330,19.1,372.49,12.5,17.6,},
{0.04301,80,1.91,0,0.413,5.663,21.9,10.5857,4,334,22,382.8,8.05,18.2,},
{0.537,0,6.2,0,0.504,5.981,68.1,3.6715,8,307,17.4,378.35,11.65,24.3,},
{1.05393,0,8.14,0,0.538,5.935,29.3,4.4986,4,307,21,386.85,6.58,23.1,},
{0.07896,0,12.83,0,0.437,6.273,6,4.2515,5,398,18.7,394.92,6.78,24.1,},
{0.07022,0,4.05,0,0.51,6.02,47.2,3.5549,5,296,16.6,393.23,10.11,23.2,},
{0.03306,0,5.19,0,0.515,6.059,37.3,4.8122,5,224,20.2,396.14,8.51,20.6,}
{0.75026f,0,8.14f,0,0.538f,5.924f,94.1f,4.3996f,4,307,21,394.33f,16.3f,15.6f,},
{0.05479f,33,2.18f,0,0.472f,6.616f,58.1f,3.37f,7,222,18.4f,393.36f,8.93f,28.4f,},
{0.14052f,0,10.59f,0,0.489f,6.375f,32.3f,3.9454f,4,277,18.6f,385.81f,9.38f,28.1f,},
{0.03049f,55,3.78f,0,0.484f,6.874f,28.1f,6.4654f,5,370,17.6f,387.97f,4.61f,31.2f,},
{23.6482f,0,18.1f,0,0.671f,6.38f,96.2f,1.3861f,24,666,20.2f,396.9f,23.69f,13.1f,},
{0.0578f,0,2.46f,0,0.488f,6.98f,58.4f,2.829f,3,193,17.8f,396.9f,5.04f,37.2f,},
{0.06899f,0,25.65f,0,0.581f,5.87f,69.7f,2.2577f,2,188,19.1f,389.15f,14.37f,22,},
{8.15174f,0,18.1f,0,0.7f,5.39f,98.9f,1.7281f,24,666,20.2f,396.9f,20.85f,11.5f,},
{11.1081f,0,18.1f,0,0.668f,4.906f,100,1.1742f,24,666,20.2f,396.9f,34.77f,13.8f,},
{0.06588f,0,2.46f,0,0.488f,7.765f,83.3f,2.741f,3,193,17.8f,395.56f,7.56f,39.8f,},
{0.03502f,80,4.95f,0,0.411f,6.861f,27.9f,5.1167f,4,245,19.2f,396.9f,3.33f,28.5f,},
{1.23247f,0,8.14f,0,0.538f,6.142f,91.7f,3.9769f,4,307,21,396.9f,18.72f,15.2f,},
{0.3692f,0,9.9f,0,0.544f,6.567f,87.3f,3.6023f,4,304,18.4f,395.69f,9.28f,23.8f,},
{0.03466f,35,6.06f,0,0.4379f,6.031f,23.3f,6.6407f,1,304,16.9f,362.25f,7.83f,19.4f,},
{0.05372f,0,13.92f,0,0.437f,6.549f,51,5.9604f,4,289,16,392.85f,7.39f,27.1f,},
{0.11747f,12.5f,7.87f,0,0.524f,6.009f,82.9f,6.2267f,5,311,15.2f,396.9f,13.27f,18.9f,},
{18.811f,0,18.1f,0,0.597f,4.628f,100,1.5539f,24,666,20.2f,28.79f,34.37f,17.9f,},
{0.03578f,20,3.33f,0,0.4429f,7.82f,64.5f,4.6947f,5,216,14.9f,387.31f,3.76f,45.4f,},
{2.15505f,0,19.58f,0,0.871f,5.628f,100,1.5166f,5,403,14.7f,169.27f,16.65f,15.6f,},
{0.02731f,0,7.07f,0,0.469f,6.421f,78.9f,4.9671f,2,242,17.8f,396.9f,9.14f,21.6f,},
{0.09512f,0,12.83f,0,0.437f,6.286f,45,4.5026f,5,398,18.7f,383.23f,8.94f,21.4f,},
{4.34879f,0,18.1f,0,0.58f,6.167f,84,3.0334f,24,666,20.2f,396.9f,16.29f,19.9f,},
{0.54452f,0,21.89f,0,0.624f,6.151f,97.9f,1.6687f,4,437,21.2f,396.9f,18.46f,17.8f,},
{5.82401f,0,18.1f,0,0.532f,6.242f,64.7f,3.4242f,24,666,20.2f,396.9f,10.74f,23,},
{2.73397f,0,19.58f,0,0.871f,5.597f,94.9f,1.5257f,5,403,14.7f,351.85f,21.45f,15.4f,},
{24.8017f,0,18.1f,0,0.693f,5.349f,96,1.7028f,24,666,20.2f,396.9f,19.77f,8.3f,},
{1.27346f,0,19.58f,1,0.605f,6.25f,92.6f,1.7984f,5,403,14.7f,338.92f,5.5f,27,},
{0.66351f,20,3.97f,0,0.647f,7.333f,100,1.8946f,5,264,13,383.29f,7.79f,36,},
{0.49298f,0,9.9f,0,0.544f,6.635f,82.5f,3.3175f,4,304,18.4f,396.9f,4.54f,22.8f,},
{0.05023f,35,6.06f,0,0.4379f,5.706f,28.4f,6.6407f,1,304,16.9f,394.02f,12.43f,17.1f,},
{0.06724f,0,3.24f,0,0.46f,6.333f,17.2f,5.2146f,4,430,16.9f,375.21f,7.34f,22.6f,},
{0.06076f,0,11.93f,0,0.573f,6.976f,91,2.1675f,1,273,21,396.9f,5.64f,23.9f,},
{3.69311f,0,18.1f,0,0.713f,6.376f,88.4f,2.5671f,24,666,20.2f,391.43f,14.65f,17.7f,},
{0.44178f,0,6.2f,0,0.504f,6.552f,21.4f,3.3751f,8,307,17.4f,380.34f,3.76f,31.5f,},
{13.6781f,0,18.1f,0,0.74f,5.935f,87.9f,1.8206f,24,666,20.2f,68.95f,34.02f,8.4f,},
{8.49213f,0,18.1f,0,0.584f,6.348f,86.1f,2.0527f,24,666,20.2f,83.45f,17.64f,14.5f,},
{6.71772f,0,18.1f,0,0.713f,6.749f,92.6f,2.3236f,24,666,20.2f,0.32f,17.44f,13.4f,},
{0.38735f,0,25.65f,0,0.581f,5.613f,95.6f,1.7572f,2,188,19.1f,359.29f,27.26f,15.7f,},
{0.17783f,0,9.69f,0,0.585f,5.569f,73.5f,2.3999f,6,391,19.2f,395.77f,15.1f,17.5f,},
{51.1358f,0,18.1f,0,0.597f,5.757f,100,1.413f,24,666,20.2f,2.6f,10.11f,15,},
{2.81838f,0,18.1f,0,0.532f,5.762f,40.3f,4.0983f,24,666,20.2f,392.92f,10.42f,21.8f,},
{5.66637f,0,18.1f,0,0.74f,6.219f,100,2.0048f,24,666,20.2f,395.69f,16.59f,18.4f,},
{0.52058f,0,6.2f,1,0.507f,6.631f,76.5f,4.148f,8,307,17.4f,388.45f,9.54f,25.1f,},
{2.14918f,0,19.58f,0,0.871f,5.709f,98.5f,1.6232f,5,403,14.7f,261.95f,15.79f,19.4f,},
{0.20608f,22,5.86f,0,0.431f,5.593f,76.5f,7.9549f,7,330,19.1f,372.49f,12.5f,17.6f,},
{0.04301f,80,1.91f,0,0.413f,5.663f,21.9f,10.5857f,4,334,22,382.8f,8.05f,18.2f,},
{0.537f,0,6.2f,0,0.504f,5.981f,68.1f,3.6715f,8,307,17.4f,378.35f,11.65f,24.3f,},
{1.05393f,0,8.14f,0,0.538f,5.935f,29.3f,4.4986f,4,307,21,386.85f,6.58f,23.1f,},
{0.07896f,0,12.83f,0,0.437f,6.273f,6,4.2515f,5,398,18.7f,394.92f,6.78f,24.1f,},
{0.07022f,0,4.05f,0,0.51f,6.02f,47.2f,3.5549f,5,296,16.6f,393.23f,10.11f,23.2f,},
{0.03306f,0,5.19f,0,0.515f,6.059f,37.3f,4.8122f,5,224,20.2f,396.14f,8.51f,20.6f,},
};

return boston_test;
Expand Down
Loading

0 comments on commit ce58a48

Please sign in to comment.