Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile/runtime errors (( ubuntu #15

Open
221V opened this issue May 29, 2019 · 1 comment
Open

compile/runtime errors (( ubuntu #15

221V opened this issue May 29, 2019 · 1 comment

Comments

@221V
Copy link

221V commented May 29, 2019

/LambdaNet/AI/Network/FeedForwardNetwork.hs:37:10: error:
        • No instance for (Semigroup FeedForwardNetwork)
            arising from the superclasses of an instance declaration
        • In the instance declaration for ‘Monoid FeedForwardNetwork’
       |
    37 | instance Monoid FeedForwardNetwork where
       |          ^^^^^^^^^^^^^^^^^^^^^^^^^

@221V
Copy link
Author

221V commented May 29, 2019

fix this by add

instance Semigroup FeedForwardNetwork where
--  mempty = emptyFeedForwardNetwork
  (<>) = addFeedForwardNetworks

compile ok, but i get error when run xor example

==> XOR predictions: 
*** Exception: different dimensions 1 and 2 in dot product
CallStack (from HasCallStack):
  error, called at src/Internal/Numeric.hs:675:19 in hmatrix-0.19.0.0-2s9G4ERdQNGmPHLhVSJnl:Internal.Numeric

@221V 221V changed the title can not compile(( ubuntu compile/runtime errors (( ubuntu May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant