-
Notifications
You must be signed in to change notification settings - Fork 82
Adapt MNIST example to use the original lecun data files #97
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
base: master
Are you sure you want to change the base?
Changes from all commits
3d39f38
8f6e858
109ae26
5100f35
e355d7d
0fa41f2
128856a
c2af380
8cea7ed
426a8a1
081e2fa
f104e50
726cb2d
9667486
e5f52b1
a5ed003
19c3521
b544b93
7012c5f
a88d710
0e1462d
bb98d46
5b19f1e
165b447
d386d4a
99e4cd6
f7b53b0
6ab97a4
517da92
cc547a5
24678b0
2f724dc
b0b671b
ccd2679
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ cabal.project.local | |
cabal.sandbox.config | ||
dist/ | ||
dist-newstyle/ | ||
data |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# HLint configuration file | ||
# https://github.com/ndmitchell/hlint | ||
########################## | ||
|
||
# This file contains a template configuration file, which is typically | ||
# placed as .hlint.yaml in the root of your project | ||
|
||
|
||
- ignore: {name: "Redundant bracket"} | ||
- ignore: {name: "Reduce duplication"} | ||
|
||
|
||
# Specify additional command line arguments | ||
# | ||
# - arguments: [--color, --cpp-simple, -XQuasiQuotes] | ||
|
||
|
||
# Control which extensions/flags/modules/functions can be used | ||
# | ||
# - extensions: | ||
# - default: false # all extension are banned by default | ||
# - name: [PatternGuards, ViewPatterns] # only these listed extensions can be used | ||
# - {name: CPP, within: CrossPlatform} # CPP can only be used in a given module | ||
# | ||
# - flags: | ||
# - {name: -w, within: []} # -w is allowed nowhere | ||
# | ||
# - modules: | ||
# - {name: [Data.Set, Data.HashSet], as: Set} # if you import Data.Set qualified, it must be as 'Set' | ||
# - {name: Control.Arrow, within: []} # Certain modules are banned entirely | ||
# | ||
# - functions: | ||
# - {name: unsafePerformIO, within: []} # unsafePerformIO can only appear in no modules | ||
|
||
|
||
# Add custom hints for this project | ||
# | ||
# Will suggest replacing "wibbleMany [myvar]" with "wibbleOne myvar" | ||
# - error: {lhs: "wibbleMany [x]", rhs: wibbleOne x} | ||
|
||
|
||
# Turn on hints that are off by default | ||
# | ||
# Ban "module X(module X) where", to require a real export list | ||
# - warn: {name: Use explicit module export list} | ||
# | ||
# Replace a $ b $ c with a . b $ c | ||
# - group: {name: dollar, enabled: true} | ||
# | ||
# Generalise map to fmap, ++ to <> | ||
# - group: {name: generalise, enabled: true} | ||
|
||
|
||
# Ignore some builtin hints | ||
# - ignore: {name: Use let} | ||
# - ignore: {name: Use const, within: SpecialModule} # Only within certain modules | ||
|
||
|
||
# Define some custom infix operators | ||
# - fixity: infixr 3 ~^#^~ | ||
|
||
|
||
# To generate a suitable file for HLint do: | ||
# $ hlint --default > .hlint.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,6 @@ source-repository head | |
type: git | ||
location: https://github.com/HuwCampbell/grenade.git | ||
|
||
library | ||
|
||
executable feedforward | ||
ghc-options: -Wall -threaded -O2 | ||
main-is: main/feedforward.hs | ||
|
@@ -39,37 +37,57 @@ executable mnist | |
ghc-options: -Wall -threaded -O2 | ||
main-is: main/mnist.hs | ||
build-depends: base | ||
, cereal | ||
, grenade | ||
, attoparsec | ||
, either | ||
, filepath | ||
, bytestring | ||
, optparse-applicative >= 0.13 && < 0.16 | ||
, text == 1.2.* | ||
, mtl >= 2.2.1 && < 2.3 | ||
, hmatrix >= 0.18 && < 0.21 | ||
, transformers | ||
, semigroups | ||
, singletons | ||
, MonadRandom | ||
, vector | ||
, split | ||
, zlib | ||
|
||
executable iris | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A new example is a great idea, but should probably be a separate PR from the other changes you are making. Having them a separate make reviewing both PRs easier. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Understood. In this case the changes are focused on making the examples run (which they now do, as you can see from the travis output). I think that I've got to a stage where the pieces are in place. If you want to improve the run scripts, I think that that would be good. I'd be happy to flesh out some of the documentation, if that would help. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not too sure it the examples should run in CI. Will have a look. |
||
ghc-options: -Wall -threaded -O2 | ||
main-is: main/iris.hs | ||
build-depends: base | ||
, MonadRandom | ||
, bytestring | ||
, cassava | ||
, filepath | ||
, grenade | ||
, hmatrix >= 0.18 && < 0.21 | ||
, mtl >= 2.2.1 && < 2.3 | ||
, optparse-applicative >= 0.13 && < 0.16 | ||
, random-shuffle | ||
, semigroups | ||
, singletons | ||
, transformers | ||
, vector | ||
|
||
executable gan-mnist | ||
ghc-options: -Wall -threaded -O2 | ||
main-is: main/gan-mnist.hs | ||
build-depends: base | ||
, cereal | ||
, grenade | ||
, attoparsec | ||
, filepath | ||
, bytestring | ||
, cereal | ||
, either | ||
, optparse-applicative >= 0.13 && < 0.16 | ||
, text == 1.2.* | ||
, mtl >= 2.2.1 && < 2.3 | ||
, hmatrix >= 0.18 && < 0.21 | ||
, transformers | ||
, semigroups | ||
, singletons | ||
, split | ||
, MonadRandom | ||
, vector | ||
, zlib | ||
|
||
executable recurrent | ||
ghc-options: -Wall -threaded -O2 | ||
|
Uh oh!
There was an error while loading. Please reload this page.