MCPcopy Create free account
hub / github.com/Morgansy/Genetic-Alpha / _length

Method _length

_program.py:413–415  ·  view source on GitHub ↗

Calculates the number of functions and terminals in the program.

(self)

Source from the content-addressed store, hash-verified

411 return depth - 1
412
413 def _length(self):
414 """Calculates the number of functions and terminals in the program."""
415 return len(self.program)
416
417 def execute(self, X):
418 """Execute the program according to X.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected