MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nas/search_space.py:19–28  ·  view source on GitHub ↗
(self, config: Dict[str, Any])

Source from the content-addressed store, hash-verified

17
18class SearchSpace:
19 def __init__(self, config: Dict[str, Any]):
20 self.config = config
21
22 self.layer_types = ['conv3x3', 'conv5x5', 'conv7x7', 'depthwise', 'bottleneck', 'identity']
23 self.activation_types = ['relu', 'gelu', 'silu', 'mish']
24 self.pooling_types = ['max', 'avg', 'none']
25 self.channels = [32, 64, 128, 256, 512]
26
27 self.num_layers = config.get('num_layers', 20)
28 self.num_blocks = config.get('num_blocks', 5)
29
30 def random_architecture(self) -> Architecture:
31 genome = []

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected