Skip to content

Commit

Permalink
Make weights for test deterministic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leif Johnson committed Jun 9, 2015
1 parent 105dd97 commit ddac2cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/feedforward_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ def _build(self, *hiddens):

def test_score_onelayer(self):
net = self._build(13)
z = net.score(self.images,
self.labels,
np.random.randint(0, 2, size=self.labels.shape))
z = net.score(
self.images, self.labels, 0.5 * np.ones(self.labels.shape, 'f'))
assert 0 < z < 1


Expand Down

0 comments on commit ddac2cc

Please sign in to comment.