Spaces:
Sleeping
Sleeping
Commit
·
3c89246
1
Parent(s):
26dc42c
Increase time resolution of ages
Browse files
eureqa.jl
CHANGED
|
@@ -376,9 +376,10 @@ end
|
|
| 376 |
mutable struct PopMember
|
| 377 |
tree::Node
|
| 378 |
score::Float32
|
| 379 |
-
birth::
|
| 380 |
|
| 381 |
-
PopMember(t) = new(t, scoreFunc(t, X, y, parsimony),
|
|
|
|
| 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 =
|
| 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 |
|