FEDOT
FEDOT copied to clipboard
Make explicit notation for initial assumptions and final choices in OptHistory
There's a need to make OptHistory
class more clear and testable.
To specify, OptHistory.individuals
is a list of generations, each of them is the list of individuals. There are two implicit agreements:
- to store initial assumptions as generation 0,
- to store the final choices as the last generation.
The first agreement can easily be broken, it is not covered by tests. The second agreement is already broken by recent changes, there's also no tests for it.
The following changes are required:
- OptHistory should contain the individuals chosen for final tuning again (fix).
- OptHistory should refer to the initial assumptions and the final choices via explicit names (for test and interface purposes).
- There should be a test that validates newly-generated histories to contain these named entities (test coverage of the fix).
Можно в описании пояснить, для чего это требуется? Описано "что", но неочевидно "зачем" (особенно пункт 2)
Можно в описании пояснить, для чего это требуется? Описано "что", но неочевидно "зачем" (особенно пункт 2)
Обновил описание