def __get_hopt_params(self, trial):
params = []<EOL>for k in trial.__dict__:<EOL><INDENT>v = trial.__dict__[k]<EOL>if v is None or v == False:<EOL><INDENT>continue<EOL><DEDENT>if self.__should_escape(v):<EOL><INDENT>cmd = '<STR_LIT>'.format(k, v)<EOL><DEDENT>else:<EOL><INDENT>cmd = '<STR_LIT>'.format(k, v)<EOL><DEDENT>params.append(cmd)<EOL><DEDENT>params.append('<STR_LIT>'.format(HyperOptArgumentParser.TRIGGER_CMD))<EOL>full_cmd = '<STR_LIT:U+0020>'.join(params)<EOL>return full_cmd<EOL>
Turns hopt trial into script params
:param trial:
:return: