Commit 49aaac1a authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV
Browse files

extending lstm eval

parent 4030ade6
Pipeline #12812 passed with stages
in 16 minutes
......@@ -121,6 +121,9 @@ class LSTMEval(Algorithm):
# frames = numpy.asarray(frames)
#" .... And frames of shape {0} are extracted to pass into DNN model".format(frames.shape))
if frames is None:
return None
if self.data_std:
frames = numpy.divide(frames - self.data_mean, self.data_std)
......@@ -140,6 +143,7 @@ class LSTMEval(Algorithm):
raise ValueError("Tensorflow session was not initialized, so cannot project on DNN model!")"Projected scores {0}".format(projections))
return numpy.asarray(projections, dtype=numpy.float32)
def project(self, feature):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment