num_inter_group_connections = num_connections - num_intra_group_connections
if verbose:
print("grouping evaluation metric")
- print("num_connections={} num_intra_group_connections={} "
- "num_inter_group_connections={}").format(
- num_connections, num_intra_group_connections,
- num_inter_group_connections)
+ print(("num_connections={} num_intra_group_connections={} "
+ "num_inter_group_connections={}").format(
+ num_connections, num_intra_group_connections,
+ num_inter_group_connections))
self.dag_matrix = dag_matrix
# output_shape
controller_ops["reward"]["ph"][child_id]: reward,
})
if verbose:
- print("run_time={:<.5f} reward={:<.5f} "
- "best_reward={:<.5f}").format(run_time, reward, best_reward)
+ print(("run_time={:<.5f} reward={:<.5f} "
+ "best_reward={:<.5f}").format(run_time, reward, best_reward))
# Reward is a double, best_reward a float: allow for some slack in the
# comparison.