From f2b508810553a51a4be922e5ddbb48859ed2b93a Mon Sep 17 00:00:00 2001
From: Nikolai Hartmann <nikolai.hartmann@gmx.de>
Date: Mon, 22 Oct 2018 11:10:58 +0200
Subject: [PATCH] some comments

---
 toolkit.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/toolkit.py b/toolkit.py
index 1a27649..5a6aa8a 100755
--- a/toolkit.py
+++ b/toolkit.py
@@ -991,6 +991,10 @@ class ClassificationProject(object):
 
 
     def predict(self, x, mode=None):
+        """
+        Calculate the scores for a (transformed) array of input values.
+        If the array is not transformed, use `evaluate` instead
+        """
         if mode is None:
             # normal output - after activation function output layer
             return self.model.predict(x)
@@ -1010,6 +1014,10 @@ class ClassificationProject(object):
 
 
     def evaluate(self, x_eval, mode=None):
+        """
+        Calculate the scores for an array of input values.
+        All nescessary transformations are applied.
+        """
         logger.debug("Evaluate score for {}".format(x_eval))
         x_eval = self.transform(x_eval)
         logger.debug("Evaluate for transformed array: {}".format(x_eval))
-- 
GitLab