Skip to content
Snippets Groups Projects
Commit f2b50881 authored by Nikolai Hartmann's avatar Nikolai Hartmann
Browse files

some comments

parent 9dbc0793
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment