PySR / julia /halloffame.jl
AutonLabTruth's picture
Moved things around. Seems like it still works as well
921343f
raw
history blame
311 Bytes
# List of the best members seen all time
mutable struct HallOfFame
members::Array{PopMember, 1}
exists::Array{Bool, 1} #Whether it has been set
# Arranged by complexity - store one at each.
HallOfFame() = new([PopMember(Node(1f0), 1f9) for i=1:actualMaxsize], [false for i=1:actualMaxsize])
end