MilesCranmer commited on
Commit
9fb30b3
1 Parent(s): f7fa1b2

Add progress measure to logging output

Browse files
Files changed (2) hide show
  1. julia/sr.jl +2 -0
  2. setup.py +1 -1
julia/sr.jl CHANGED
@@ -1223,6 +1223,8 @@ function fullRun(niterations::Integer;
1223
  if verbosity > 0
1224
  @printf("\n")
1225
  @printf("Cycles per second: %.3e\n", round(average_speed, sigdigits=3))
 
 
1226
  @printf("Hall of Fame:\n")
1227
  @printf("-----------------------------------------\n")
1228
  @printf("%-10s %-8s %-8s %-8s\n", "Complexity", "MSE", "Score", "Equation")
 
1223
  if verbosity > 0
1224
  @printf("\n")
1225
  @printf("Cycles per second: %.3e\n", round(average_speed, sigdigits=3))
1226
+ cycles_elapsed = npopulations * niterations - cycles_complete
1227
+ @printf("Progress: %d / %d total iterations (%.3f%%)\n", cycles_elapsed, npopulations * niterations, 100.0*cycles_elapsed/(npopulations*niterations))
1228
  @printf("Hall of Fame:\n")
1229
  @printf("-----------------------------------------\n")
1230
  @printf("%-10s %-8s %-8s %-8s\n", "Complexity", "MSE", "Score", "Equation")
setup.py CHANGED
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
 
6
  setuptools.setup(
7
  name="pysr", # Replace with your own username
8
- version="0.3.30",
9
  author="Miles Cranmer",
10
  author_email="[email protected]",
11
  description="Simple and efficient symbolic regression",
 
5
 
6
  setuptools.setup(
7
  name="pysr", # Replace with your own username
8
+ version="0.3.31",
9
  author="Miles Cranmer",
10
  author_email="[email protected]",
11
  description="Simple and efficient symbolic regression",