Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
We should add a new threshold utility function (in nn/util.dml) that accepts a matrix X and a threshold parameter thresh and returns an indicator matrix out with values in {0, 1} depending on whether or not the values in X are above thresh. We could use this, for example, for determining the predicted class in a binary classification problem given the output of a sigmoid layer.
We should also add a test case in nn/test/test.dml.