Skip to content

Commit

Permalink
(#2) Victim: Add evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed Apr 18, 2022
1 parent 60f9f36 commit 8d6100b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/typings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ def train(self, epochs: int = 100):
],
)

self.__model.evaluate(self.data_test)

self.post_train()

def evaluate(self):
self.load()
result = self.__model.evaluate(self.data_test)
return dict(zip(self.__model.metrics_names, result))


class Attack(ABC):
def __init__(
Expand Down

0 comments on commit 8d6100b

Please sign in to comment.