MilesCranmer commited on
Commit
13409d1
1 Parent(s): 4a71ced

Set initial score to 0 instead of nan

Browse files
Files changed (1) hide show
  1. julia/sr.jl +1 -1
julia/sr.jl CHANGED
@@ -856,7 +856,7 @@ function fullRun(niterations::Integer;
856
  @printf("-----------------------------------------\n")
857
  @printf("%-10s %-8s %-8s %-8s\n", "Complexity", "MSE", "Score", "Equation")
858
  curMSE = baselineSSE / len
859
- @printf("%-10d %-8.3e %-8s %-.f\n", 0, curMSE, "NaN", avgy)
860
  lastMSE = curMSE
861
  lastComplexity = 0
862
 
 
856
  @printf("-----------------------------------------\n")
857
  @printf("%-10s %-8s %-8s %-8s\n", "Complexity", "MSE", "Score", "Equation")
858
  curMSE = baselineSSE / len
859
+ @printf("%-10d %-8.3e %-8.3e %-.f\n", 0, curMSE, 0f0, avgy)
860
  lastMSE = curMSE
861
  lastComplexity = 0
862