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

Программный интерфейс: бюджет структуры и ёмкость

StructureCopyBudget (structure_cache_budget.py)

Гейтит резидентность в кэше, не уникальность живой популяции.

Метод Смысл
hashes_for(genome) (structure_hash, effective_structure_hash)
can_admit / admit / release / release_many Счётчики копий

Политика: full графа включённых рёбер — max 1 копия (fitness_cache_full_structure_max_copies=1). Effective I/O-подграф — max \(N\), 0 = без лимита.

На геноме: ConvolutionalNeuralNetwork.structure_hash(), effective_structure_hash(), forward_execute_incremental, forward_execute_with_capture.

cache_capacity_guard.py

Zero-sharing bound (включая inherited breeders):

\[ n_{\mathrm{img}} = \left\lfloor \frac{B_{\mathrm{cache}}}{(P + \rho P)\, V\, C\, H\, W\, \cdot 4} \right\rfloor \]
Символ Роль
strict_full_batch_image_limit(...) Верхняя оценка \(n_{\mathrm{img}}\)
CacheCapacityViolation Run failed: resident bytes / skipped puts / missing breeders
detect_cache_capacity_violation Проверка после поколения

fitness_forward_hash_cache_strict_capacity=True — падать, если пул вылез за бюджет (script 11).

Имитатор волн кэша (cache_wave_sim/)

Песочница без реальных свёрток: SimConfig, WavePlan, run_eval_wave, run_generation_sim, run_stress, plan_sequential_outputs. Аналогии в литературе: Hyperband, ENAS, KLay — см. docstring пакета.

Математика: effective topology, ёмкость.