Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
nh2 committed Jul 11, 2013
1 parent 90aae52 commit 0ee07f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Hopfield/TestUtil.hs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ boltzmannBuildGen m1 m2 max_hidden = do
return $ (pats, i)


build_BM_Check :: ([Pattern], Int) -> Gen Bool
build_BM_Check (pats, nr_h) = do
buildBoltzmannCheck :: ([Pattern], Int) -> Gen Bool
buildBoltzmannCheck (pats, nr_h) = do
i <- arbitrary
let bd = evalRand (buildBoltzmannData' pats nr_h) (mkStdGen i)
return $ patternsB bd == pats && nr_hiddenB bd == nr_h
Expand Down
2 changes: 1 addition & 1 deletion test/TestBoltzmann.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ testBoltzmannMachine = do
let boltzmannAndPatGen' = boltzmannAndPatGen maxPatListSize maxPatSize maxNrHidden

it "tests that the patterns and nr of hidden neurons stored in the Boltzmann data structure are the same as the ones which were given as input" $
forAll boltzmannBuildGen' build_BM_Check
forAll boltzmannBuildGen' buildBoltzmannCheck

it "tests that the activation function application always gives us a probability" $
forAll boltzmannAndPatGen' $ probabilityCheck
Expand Down

0 comments on commit 0ee07f9

Please sign in to comment.