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

Scripts

8.3 Запуск через скрипты

Один эксперимент:

python -c "
from cnn_neat import ExperimentConfig
from cnn_neat.evolution_loop import run_evolution
cfg = ExperimentConfig(positive_class=3, num_generations=50, population_size=100)
run_evolution(cfg)
"

Suite для всех 10 классов:

# Baseline (без elite refinement)
python scripts/run_cifar10_class_suite.py

# С elite refinement
python scripts/run_cifar10_class_suite.py --refinement

# Быстрый тест (pop=8, gen=2, val=512)
python scripts/run_cifar10_class_suite.py --quick

# Конкретный класс
python scripts/run_cifar10_class_suite.py --classes 0 3 7

Аблационное исследование (simple):

python scripts/ablation/02_arch_ablation.py

Структурированное исследование (Фазы A→B→C→D):

python scripts/ablation/05_structured_study.py
# Открыть runs/ablation/study/live.html для мониторинга

Benchmark throughput:

python scripts/benchmark_forward_epoch.py