Перейти к содержанию

Testing

11. Тесты

Два независимых test suite:

Каталог Назначение Запуск
tests/ Актуальные тесты (tiered fitness, screen-cache) pytest tests/ -v
tests_legacy/ Замороженный suite до tiered (ветка legacy/pre-tiered) pytest tests_legacy/ -v

Запуск актуальных тестов:

pytest tests/ -v

Legacy suite (регрессия старого поведения, не редактировать):

pytest tests_legacy/ -v

Актуальные модули (tests/)

Модуль Что тестирует
test_tiered_eval.py Survivor fraction, elite от full pop, cap очереди offspring
test_screen_cache.py LRU, exact hit, diverging merge step
test_screen_indices.py Stratified screen-val indices

Legacy модули (tests_legacy/)

Модуль Что тестирует
test_binary_head.py Readout, decision rules
test_vram_batch.py VRAMBatchController
test_population_vram.py PopulationVRAMManager
test_forward_plan_merge.py merge без stack
test_forward_plan_release.py release слотов
test_structured_study_resume.py resume structured study
test_offspring_queue.py offspring priority queue
и др. см. tests_legacy/README.md

Интеграционный тест (class suite)

tests/cifar10_all_classes/suite_results.json

Результаты запуска run_cifar10_class_suite.py по всем 10 классам. Содержит: balanced_accuracy, roc_auc, mcc для каждого класса в режимах baseline и refinement.