@@ -26,7 +26,7 @@ import Grenade
26-- between the shapes, so inference can't do it all for us.
26-- between the shapes, so inference can't do it all for us.
28-- With around 100000 examples, this should show two clear circles which have been learned by the network.
28-- With around 100000 examples, this should show two clear circles which have been learned by the network.
29−randomNet :: (MonadRandom m) => m (Network '[ 'D1 2, 'D1 40, 'D1 40, 'D1 10, 'D1 10, 'D1 1, 'D1 1])
29+randomNet :: MonadRandom m => m (Network '[ 'D1 2, 'D1 40, 'D1 40, 'D1 10, 'D1 10, 'D1 1, 'D1 1])
30randomNet = do
30randomNet = do
31 a :: FullyConnected 2 40 <- randomFullyConnected
31 a :: FullyConnected 2 40 <- randomFullyConnected
32 b :: FullyConnected 40 10 <- randomFullyConnected
32 b :: FullyConnected 40 10 <- randomFullyConnected
@@ -74,7 +74,7 @@ feedForward' =
74 <*> (LearningParameters
74 <*> (LearningParameters
75 <$> option auto (long "train_rate" <> short 'r' <> value 0.01)
75 <$> option auto (long "train_rate" <> short 'r' <> value 0.01)
76 <*> option auto (long "momentum" <> value 0.9)
76 <*> option auto (long "momentum" <> value 0.9)
77− <*> option auto (long "l2" <> value 0.0001)
77+ <*> option auto (long "l2" <> value 0.0005)
80main :: IO ()
80main :: IO ()