def get_latest_heuristic(): """ Returns the latest heuristic that was found with the genetic algorithm """ return Heuristics.Main(weights=tuple(LATEST_VECTOR))
def vec_to_agent(vector): """ Returns a new agent based on the given vector """ heur = Heuristics.Main(weights=tuple(vector)) return Agent.OneMoveHeuristicAgent(heuristic=heur)