MCPcopy Create free account
hub / github.com/COLA-Laboratory/TransOPT / map2design

Method map2design

transopt/space/variable.py:114–115  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

112 return lower, upper
113
114 def map2design(self, value):
115 return int(2 ** value)
116
117 def map2search(self, value):
118 value = max(value, self.range[0]) # Ensure value is within valid range

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected