• Peter's avatar
    Consistency and backward compatibility of OptHistory (#700) · 28b46da2
    Peter authored
    Consistency & backward compatibility of OptHistory:
    
    * GraphOptimiser and InitialGenerationBuilder now use initial_individuals instead of initial_graphs in favor of OptHistory consistency.
    * Individual serialization: fitness that was saved as float in older histories is now converted to SingleObjFitness when loaded.
    * OptHistory.load() is now able to get os.Pathlike objects, as its signature says.
    * A new test for backward compatibility of OptHistory.load() is added.
    * ParentOperator class is temporary imported at opt_history
    28b46da2
test_history.py 9.04 KB