MCPcopy Index your code
hub / github.com/geekcomputers/Python / Architecture

Class Architecture

ML/src/python/neuralforge/nas/search_space.py:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import numpy as np
6
7class Architecture:
8 def __init__(self, genome: List[int]):
9 self.genome = genome
10 self.fitness = 0.0
11 self.accuracy = 0.0
12 self.params = 0
13 self.flops = 0
14
15 def __repr__(self):
16 return f"Architecture(fitness={self.fitness:.4f}, acc={self.accuracy:.2f}%, params={self.params})"
17
18class SearchSpace:
19 def __init__(self, config: Dict[str, Any]):

Callers 4

create_offspringMethod · 0.85
random_architectureMethod · 0.85
mutateMethod · 0.85
crossoverMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected