MilesCranmer commited on
Commit
3c89246
1 Parent(s): 26dc42c

Increase time resolution of ages

Browse files
Files changed (1) hide show
  1. eureqa.jl +4 -3
eureqa.jl CHANGED
@@ -376,9 +376,10 @@ end
376
  mutable struct PopMember
377
  tree::Node
378
  score::Float32
379
- birth::Float32
380
 
381
- PopMember(t) = new(t, scoreFunc(t, X, y, parsimony), Float32(time())-1.6f9)
 
382
  end
383
 
384
  # A list of members of the population, with easy constructors,
@@ -418,7 +419,7 @@ function iterateSample(pop::Population, T::Float32)::PopMember
418
  new = iterate(allstar.tree, T, X, y, alpha, parsimony)
419
  allstar.tree = new
420
  allstar.score = scoreFunc(new, X, y, parsimony)
421
- allstar.birth = Float32(time()) - 1.6f9
422
  return allstar
423
  end
424
 
 
376
  mutable struct PopMember
377
  tree::Node
378
  score::Float32
379
+ birth::Int32
380
 
381
+ PopMember(t) = new(t, scoreFunc(t, X, y, parsimony), round(Int32, 1e3*(time()-1.6e9))
382
+ )
383
  end
384
 
385
  # A list of members of the population, with easy constructors,
 
419
  new = iterate(allstar.tree, T, X, y, alpha, parsimony)
420
  allstar.tree = new
421
  allstar.score = scoreFunc(new, X, y, parsimony)
422
+ allstar.birth = round(Int32, 1e3*(time()-1.6e9))
423
  return allstar
424
  end
425