MCPcopy
hub / github.com/QData/TextAttack / log_attack_result

Method log_attack_result

textattack/loggers/visdom_logger.py:45–48  ·  view source on GitHub ↗
(self, result)

Source from the content-addressed store, hash-verified

43 self.vis = visdom.Visdom(port=self.port, server=self.hostname, env=self.env)
44
45 def log_attack_result(self, result):
46 text_a, text_b = result.diff_color(color_method="html")
47 result_str = result.goal_function_result_str(color_method="html")
48 self.sample_rows.append([result_str, text_a, text_b])
49
50 def log_summary_rows(self, rows, title, window_id):
51 self.table(rows, title=title, window_id=window_id)

Callers

nothing calls this directly

Calls 2

diff_colorMethod · 0.80

Tested by

no test coverage detected