def _op_extra_attrs(args): attrs = { "run_params": args.as_kw(), "random_seed": _random_seed(args), "host": util.hostname(), "user": util.user(), "platform": util.platform_info(), } if args.max_trials: attrs["max_trials"] = args.max_trials return attrs
def _op_init_run_attrs(args, op): attrs = op.run_attrs if op._label: attrs["label"] = op._label if op._batch_trials: attrs["trials"] = op._batch_trials attrs["flags"] = op._op_flag_vals attrs["run_params"] = args.as_kw() attrs["random_seed"] = op._random_seed if op._max_trials: attrs["max_trials"] = op._max_trials if op._objective: attrs["objective"] = op._objective attrs["host"] = util.hostname() attrs["user"] = util.user() attrs["platform"] = util.platform_info() attrs["op"] = _op_config_data(op) if _python_op(op): attrs["pip_freeze"] = _pip_freeze() attrs.update(op._op_cmd_run_attrs)