mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
30 lines
500 B
Python
30 lines
500 B
Python
"""
|
|
Attack Logger Wrapper
|
|
========================
|
|
"""
|
|
|
|
|
|
from abc import ABC
|
|
|
|
|
|
class Logger(ABC):
|
|
"""An abstract class for different methods of logging attack results."""
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
def log_attack_result(self, result, examples_completed):
|
|
pass
|
|
|
|
def log_summary_rows(self, rows, title, window_id):
|
|
pass
|
|
|
|
def log_hist(self, arr, numbins, title, window_id):
|
|
pass
|
|
|
|
def log_sep(self):
|
|
pass
|
|
|
|
def flush(self):
|
|
pass
|