Files
tensorneat-mend/tensorneat/algorithm/neat/gene/conn/base.py
wls2002 cf69b916af use black format all files;
remove "return state" for functions which will be executed in vmap;
recover randkey as args in mutation methods
2024-05-26 15:46:04 +08:00

13 lines
288 B
Python

from .. import BaseGene
class BaseConnGene(BaseGene):
"Base class for connection genes."
fixed_attrs = ["input_index", "output_index", "enabled"]
def __init__(self):
super().__init__()
def forward(self, state, attrs, inputs):
raise NotImplementedError