parameters: (content)
docstring: Parse fitness/reward related input from training window
docstring_summary: Parse fitness/reward related input from training window
docstring_tokens: Parse fitness / reward related input from training window
function: def parseInputFitness(content):
      """
      Parse fitness/reward related input from training window
      """
      mod = getMod()
      for entry in content.findall('entry'):
          dim, val = entry.attrib['dimension'], float(entry.text)
          key = getattr(constants, 'FITNESS_' + dim, None)
          if key:
              mod.set_weight(key, val / 100.0)
function_tokens: def parseInputFitness ( content ) : mod = getMod ( ) for entry in content . findall ( 'entry' ) : dim , val = entry . attrib [ 'dimension' ] , float ( entry . text ) key = getattr ( constants , 'FITNESS_' + dim , None ) if key : mod . set_weight ( key , val / 100.0 )