Skip to content

Commit

Permalink
Merge 08daff4 into fcaea0f
Browse files Browse the repository at this point in the history
  • Loading branch information
suzusuzu authored Apr 11, 2018
2 parents fcaea0f + 08daff4 commit 669874c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nupic/algorithms/sdr_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def inferSingleStep(self, patternNZ, weightMatrix):
outputActivation = weightMatrix[patternNZ].sum(axis=0)

# softmax normalization
outputActivation = outputActivation - numpy.max(outputActivation)
expOutputActivation = numpy.exp(outputActivation)
predictDist = expOutputActivation / numpy.sum(expOutputActivation)
return predictDist
Expand Down

0 comments on commit 669874c

Please sign in to comment.