SHARE
TWEET

FittableRegion tests

a guest Feb 17th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Note: Google Test filter = FittableRegion*
  2. [==========] Running 10 tests from 1 test case.
  3. [----------] Global test environment set-up.
  4. [----------] 10 tests from FittableRegion
  5. [ RUN      ] FittableRegion.UnboundedConstFunctionSurvey
  6. [          ] min(chi_sq)=0 at val=10
  7. [          ] min(abs(grad))=0 at val=10
  8. [       OK ] FittableRegion.UnboundedConstFunctionSurvey (0 ms)
  9. [ RUN      ] FittableRegion.UnboundedConstFunctionFit
  10. [          ] Will fit 30 --> 10±0(x=10,i=0 fit) in 5 attempts with epsilon=1e-05
  11. [          ] Attempt[0] 10±0(x=10,i=0 fit)  delta=0
  12. [          ] Attempt[1] 10±0(x=10,i=0 fit)  delta=0
  13. [          ] Attempt[2] 10±0(x=10,i=0 fit)  delta=0
  14. [          ] Attempt[3] 10±0(x=10,i=0 fit)  delta=0
  15. [          ] Attempt[4] 10±0(x=10,i=0 fit)  delta=0
  16. [          ] Will fit random(0,40) --> 10±0(x=10,i=0 fit) in 20 attempts with epsilon=0.0001
  17. [          ] Attempt[0] 11.9025->10±0(x=10,i=0 fit)  delta=-1.77636e-15
  18. [          ] Attempt[1] 7.24065->10±0(x=10,i=0 fit)  delta=0
  19. [          ] Attempt[2] 19.3962->10±0(x=10,i=0 fit)  delta=0
  20. [          ] Attempt[3] 22.9163->10±0(x=10,i=0 fit)  delta=1.77636e-15
  21. [          ] Attempt[4] 4.60187->10±0(x=10,i=0 fit)  delta=1.77636e-15
  22. [          ] Attempt[5] 11.5877->10±0(x=10,i=0 fit)  delta=0
  23. [          ] Attempt[6] 6.12395->10±0(x=10,i=0 fit)  delta=1.77636e-15
  24. [          ] Attempt[7] 5.0222->10±0(x=10,i=0 fit)  delta=0
  25. [          ] Attempt[8] 29.4823->10±0(x=10,i=0 fit)  delta=5.32907e-15
  26. [          ] Attempt[9] 22.1929->10±0(x=10,i=0 fit)  delta=1.77636e-15
  27. [          ] Attempt[10] 26.737->10±0(x=10,i=0 fit)  delta=-3.55271e-15
  28. [          ] Attempt[11] 28.5662->10±0(x=10,i=0 fit)  delta=-3.55271e-15
  29. [          ] Attempt[12] 11.3558->10±0(x=10,i=0 fit)  delta=0
  30. [          ] Attempt[13] 21.7093->10±0(x=10,i=0 fit)  delta=0
  31. [          ] Attempt[14] 12.9907->10±0(x=10,i=0 fit)  delta=0
  32. [          ] Attempt[15] 38.3158->10±0(x=10,i=0 fit)  delta=5.32907e-15
  33. [          ] Attempt[16] 23.0224->10±0(x=10,i=0 fit)  delta=-1.77636e-15
  34. [          ] Attempt[17] 2.7648->10±0(x=10,i=0 fit)  delta=0
  35. [          ] Attempt[18] 6.46863->10±0(x=10,i=0 fit)  delta=1.77636e-15
  36. [          ] Attempt[19] 25.835->10±0(x=10,i=0 fit)  delta=-3.55271e-15
  37. [       OK ] FittableRegion.UnboundedConstFunctionFit (2 ms)
  38. [ RUN      ] FittableRegion.PositiveConstFunctionSurvey
  39. [          ] min(chi_sq)=2.86893e-07 at val=9.99824
  40. [       OK ] FittableRegion.PositiveConstFunctionSurvey (109 ms)
  41. [ RUN      ] FittableRegion.PositiveConstFunctionFit
  42. [          ] Will fit 30 --> 10±0(x=3.16228,i=0 fit) in 5 attempts with epsilon=1e-05
  43. [          ] Attempt[0] 10±0(x=3.16228,i=0 fit)  delta=-9.34294e-09
  44. [          ] Attempt[1] 10±0(x=3.16228,i=0 fit)  delta=-9.34294e-09
  45. [          ] Attempt[2] 10±0(x=3.16228,i=0 fit)  delta=-9.34294e-09
  46. [          ] Attempt[3] 10±0(x=3.16228,i=0 fit)  delta=-9.34294e-09
  47. [          ] Attempt[4] 10±0(x=3.16228,i=0 fit)  delta=-9.34294e-09
  48. [          ] Will fit random(0,40) --> 10±0(x=3.16228,i=0 fit) in 20 attempts with epsilon=0.0001
  49. [          ] Attempt[0] 36.5842->10±0(x=3.16228,i=0 fit)  delta=-4.20374e-07
  50. [          ] Attempt[1] 15.9195->10±0(x=3.16228,i=0 fit)  delta=-9.66222e-07
  51. [          ] Attempt[2] 22.8271->10±0(x=3.16228,i=0 fit)  delta=-2.45683e-07
  52. [          ] Attempt[3] 9.66936->10±0(x=3.16228,i=0 fit)  delta=2.60487e-08
  53. [          ] Attempt[4] 1.30273->10±0(x=3.16228,i=0 fit)  delta=5.33318e-09
  54. [          ] Attempt[5] 3.74416->10±0(x=3.16228,i=0 fit)  delta=1.39615e-08
  55. [          ] Attempt[6] 37.6913->10±0(x=3.16228,i=0 fit)  delta=-6.95413e-07
  56. [          ] Attempt[7] 36.6055->10±0(x=3.16228,i=0 fit)  delta=-4.2461e-07
  57. [          ] Attempt[8] 34.4112->10±0(x=3.16228,i=0 fit)  delta=-1.37218e-07
  58. [          ] Attempt[9] 28.6224->10±0(x=3.16228,i=0 fit)  delta=6.15729e-09
  59. [          ] Attempt[10] 14.747->10±0(x=3.16228,i=0 fit)  delta=3.38763e-08
  60. [          ] Attempt[11] 30.0028->10±0(x=3.16228,i=0 fit)  delta=-1.90568e-11
  61. [          ] Attempt[12] 20.279->10±0(x=3.16228,i=0 fit)  delta=-1.25349e-09
  62. [          ] Attempt[13] 17.0561->10±0(x=3.16228,i=0 fit)  delta=-1.02064e-07
  63. [          ] Attempt[14] 25.6655->10±0(x=3.16228,i=0 fit)  delta=-2.64076e-06
  64. [          ] Attempt[15] 15.1673->10±0(x=3.16228,i=0 fit)  delta=1.03892e-08
  65. [          ] Attempt[16] 38.7888->10±0(x=3.16228,i=0 fit)  delta=-1.10672e-06
  66. [          ] Attempt[17] 17.8317->10±0(x=3.16228,i=0 fit)  delta=-9.0775e-07
  67. [          ] Attempt[18] 11.9971->10±0(x=3.16228,i=0 fit)  delta=-6.02083e-09
  68. [          ] Attempt[19] 14.6998->10±0(x=3.16228,i=0 fit)  delta=4.12961e-08
  69. [       OK ] FittableRegion.PositiveConstFunctionFit (2 ms)
  70. [ RUN      ] FittableRegion.BoundedConstFunctionSurvey
  71. [          ] min(chi_sq)=5.1261e-08 at val=10.0007
  72. [       OK ] FittableRegion.BoundedConstFunctionSurvey (108 ms)
  73. [ RUN      ] FittableRegion.BoundedConstFunctionFit
  74. [          ] Will fit 30 --> 10±0(x=-0.523599,i=0 fit) [0,40] in 5 attempts with epsilon=1e-05
  75. [          ] Attempt[0] 10±0(x=-0.523599,i=0 fit) [0,40]  delta=-7.79936e-10
  76. [          ] Attempt[1] 10±0(x=-0.523599,i=0 fit) [0,40]  delta=-7.79936e-10
  77. [          ] Attempt[2] 10±0(x=-0.523599,i=0 fit) [0,40]  delta=-7.79936e-10
  78. [          ] Attempt[3] 10±0(x=-0.523599,i=0 fit) [0,40]  delta=-7.79936e-10
  79. [          ] Attempt[4] 10±0(x=-0.523599,i=0 fit) [0,40]  delta=-7.79936e-10
  80. [          ] Will fit random(0,40) --> 10±0(x=-0.523599,i=0 fit) [0,40] in 20 attempts with epsilon=0.0001
  81. [          ] Attempt[0] 12.9423->10±0(x=-0.523599,i=0 fit) [0,40]  delta=3.98259e-10
  82. [          ] Attempt[1] 0.654237->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-2.68798e-09
  83. [          ] Attempt[2] 26.9262->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-9.79631e-08
  84. [          ] Attempt[3] 26.7388->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-1.11343e-07
  85. [          ] Attempt[4] 36.0227->10±0(x=-0.523599,i=0 fit) [0,40]  delta=2.07359e-08
  86. [          ] Attempt[5] 37.112->10±0(x=-0.523599,i=0 fit) [0,40]  delta=1.67592e-06
  87. [          ] Attempt[6] 14.3399->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-3.91427e-07
  88. [          ] Attempt[7] 29.0807->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-6.60018e-09
  89. [          ] Attempt[8] 13.2133->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-4.51906e-09
  90. [          ] Attempt[9] 36.0546->10±0(x=-0.523599,i=0 fit) [0,40]  delta=2.05281e-08
  91. [          ] Attempt[10] 35.6132->10±0(x=-0.523599,i=0 fit) [0,40]  delta=3.82942e-09
  92. [          ] Attempt[11] 24.057->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-2.56251e-07
  93. [          ] Attempt[12] 39.7662->10±0(x=-6.80678,i=0 fit) [0,40]  delta=6.028e-07
  94. [          ] Attempt[13] 22.608->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-2.17895e-07
  95. [          ] Attempt[14] 37.2251->10±0(x=-0.523599,i=0 fit) [0,40]  delta=3.89349e-10
  96. [          ] Attempt[15] 10.175->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-2.29504e-07
  97. [          ] Attempt[16] 20.0573->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-5.34923e-08
  98. [          ] Attempt[17] 29.7107->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-1.01414e-09
  99. [          ] Attempt[18] 35.2056->10±0(x=-0.523599,i=0 fit) [0,40]  delta=2.78746e-06
  100. [          ] Attempt[19] 17.772->10±0(x=-0.523599,i=0 fit) [0,40]  delta=-3.03963e-10
  101. [       OK ] FittableRegion.BoundedConstFunctionFit (1 ms)
  102. [ RUN      ] FittableRegion.BoundedLinearFunctionSurvey
  103. [          ] min(chi_sq)=4.4678e-07 at val=5.00034
  104. [          ] min(abs(grad))=-1.37489 at val=5.00034
  105. [       OK ] FittableRegion.BoundedLinearFunctionSurvey (97 ms)
  106. [ RUN      ] FittableRegion.BoundedLinearFunctionFit
  107. [          ] Will fit 30 --> 5±0(x=-0.848062,i=0 fit) [0,40] in 5 attempts with epsilon=1e-05
  108. [          ] Attempt[0] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-8.9484e-12
  109. [          ] Attempt[1] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-8.9484e-12
  110. [          ] Attempt[2] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-8.9484e-12
  111. [          ] Attempt[3] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-8.9484e-12
  112. [          ] Attempt[4] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-8.9484e-12
  113. [          ] Will fit random(0,40) --> 5±0(x=-0.848062,i=0 fit) [0,40] in 20 attempts with epsilon=0.0001
  114. [          ] Attempt[0] 24.6132->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.05878e-09
  115. [          ] Attempt[1] 6.66776->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-5.74912e-10
  116. [          ] Attempt[2] 10.5804->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-5.14279e-09
  117. [          ] Attempt[3] 18.687->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-4.63552e-10
  118. [          ] Attempt[4] 19.0795->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-5.58591e-10
  119. [          ] Attempt[5] 5.92867->5±0(x=-0.848062,i=0 fit) [0,40]  delta=7.93893e-09
  120. [          ] Attempt[6] 38.2034->5±0(x=-2.29353,i=0 fit) [0,40]  delta=-9.04747e-08
  121. [          ] Attempt[7] 14.6371->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-9.99822e-12
  122. [          ] Attempt[8] 10.7403->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-6.78101e-09
  123. [          ] Attempt[9] 19.8501->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-7.6112e-10
  124. [          ] Attempt[10] 14.0198->5±0(x=-0.848062,i=0 fit) [0,40]  delta=1.30562e-13
  125. [          ] Attempt[11] 5.75739->5±0(x=-0.848062,i=0 fit) [0,40]  delta=1.38263e-11
  126. [          ] Attempt[12] 12.0274->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-4.37503e-08
  127. [          ] Attempt[13] 37.8999->5±0(x=-2.29353,i=0 fit) [0,40]  delta=-1.03244e-09
  128. [          ] Attempt[14] 27.8529->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.77542e-10
  129. [          ] Attempt[15] 28.649->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-7.03553e-11
  130. [          ] Attempt[16] 0.446529->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.65614e-09
  131. [          ] Attempt[17] 2.46561->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-5.22808e-11
  132. [          ] Attempt[18] 26.0729->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-6.26874e-10
  133. [          ] Attempt[19] 30.8113->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-8.97396e-08
  134. [       OK ] FittableRegion.BoundedLinearFunctionFit (2 ms)
  135. [ RUN      ] FittableRegion.BoundedQuadraticFunctionSurvey
  136. [          ] min(chi_sq)=1.18417e-05 at val=5.00034
  137. [          ] min(abs(grad))=-36.4408 at val=5.00034
  138. [       OK ] FittableRegion.BoundedQuadraticFunctionSurvey (111 ms)
  139. [ RUN      ] FittableRegion.BoundedQuadraticFunctionFit
  140. [          ] Will fit 30 --> 5±0(x=-0.848062,i=0 fit) [0,40] in 5 attempts with epsilon=1e-05
  141. [          ] Attempt[0] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-9.15001e-12
  142. [          ] Attempt[1] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-9.15001e-12
  143. [          ] Attempt[2] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-9.15001e-12
  144. [          ] Attempt[3] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-9.15001e-12
  145. [          ] Attempt[4] 5±0(x=-0.848062,i=0 fit) [0,40]  delta=-9.15001e-12
  146. [          ] Will fit random(0,40) --> 5±0(x=-0.848062,i=0 fit) [0,40] in 20 attempts with epsilon=0.0001
  147. [          ] Attempt[0] 29.3512->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-2.09193e-11
  148. [          ] Attempt[1] 16.1997->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-8.59472e-11
  149. [          ] Attempt[2] 9.4484->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-6.24706e-10
  150. [          ] Attempt[3] 14.2525->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-3.65308e-12
  151. [          ] Attempt[4] 27.4905->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-2.51055e-10
  152. [          ] Attempt[5] 5.56027->5±0(x=-0.848062,i=0 fit) [0,40]  delta=8.76987e-12
  153. [          ] Attempt[6] 6.35517->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-7.55443e-10
  154. [          ] Attempt[7] 34.1163->5±0(x=-0.848062,i=0 fit) [0,40]  delta=4.43043e-09
  155. [          ] Attempt[8] 22.468->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.31145e-09
  156. [          ] Attempt[9] 35.5418->5±0(x=-0.848062,i=0 fit) [0,40]  delta=1.83252e-09
  157. [          ] Attempt[10] 5.03293->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.16749e-10
  158. [          ] Attempt[11] 36.0251->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.4734e-10
  159. [          ] Attempt[12] 35.3691->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.76783e-10
  160. [          ] Attempt[13] 15.6177->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-4.73097e-11
  161. [          ] Attempt[14] 24.1471->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.1847e-09
  162. [          ] Attempt[15] 24.1422->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-1.18569e-09
  163. [          ] Attempt[16] 18.3732->5±0(x=-0.848062,i=0 fit) [0,40]  delta=-4.06493e-10
  164. [          ] Attempt[17] 11.9938->5±0(x=-0.848062,i=0 fit) [0,40]  delta=8.72546e-12
  165. [          ] Attempt[18] 11.0602->5±0(x=-0.848062,i=0 fit) [0,40]  delta=9.09228e-12
  166. [          ] Attempt[19] 2.60402->5±0(x=-0.848062,i=0 fit) [0,40]  delta=1.37401e-11
  167. [       OK ] FittableRegion.BoundedQuadraticFunctionFit (1 ms)
  168. [----------] 10 tests from FittableRegion (433 ms total)
  169.  
  170. [----------] Global test environment tear-down
  171. [==========] 10 tests from 1 test case ran. (433 ms total)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top