Skip to content

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

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3d39f38
Work in progress
jrp2014 Jan 25, 2020
8f6e858
WIP
jrp2014 Jan 26, 2020
109ae26
Adapt MNIST example to use original data files
jrp2014 Jan 26, 2020
5100f35
remove data files from repo
jrp2014 Jan 26, 2020
e355d7d
remove some unnecessary build-depends
jrp2014 Jan 26, 2020
0fa41f2
Reinstate import of Data.Semigroup (<>) for older ghcs
jrp2014 Jan 26, 2020
128856a
typo
jrp2014 Jan 26, 2020
c2af380
resync with original
jrp2014 Jan 27, 2020
8cea7ed
Merge branch 'master' into master
jrp2014 Jan 27, 2020
426a8a1
Convert gen-mnist example to use LeCun training data; works
jrp2014 Jan 28, 2020
081e2fa
ci typo
jrp2014 Jan 28, 2020
f104e50
ci typo
jrp2014 Jan 28, 2020
726cb2d
Cleanup in response to erikd comments
jrp2014 Jan 29, 2020
9667486
Redo mnist example using gan-mnist transformations
jrp2014 Jan 30, 2020
e5f52b1
Temporarily reduce number of mnist samples used; now runs!
jrp2014 Jan 30, 2020
a5ed003
limit samples from command line
jrp2014 Feb 1, 2020
19c3521
Work in progress
jrp2014 Jan 25, 2020
b544b93
Adapt MNIST example to use original data files
jrp2014 Jan 26, 2020
7012c5f
Reinstate import of Data.Semigroup (<>) for older ghcs
jrp2014 Jan 26, 2020
a88d710
examples: Use CPP to support multiple GHC versions
erikd Jan 26, 2020
0e1462d
Convert gen-mnist example to use LeCun training data; works
jrp2014 Jan 28, 2020
bb98d46
limit samples from command line
jrp2014 Feb 1, 2020
5b19f1e
Fix compiler warning
erikd Jan 23, 2020
165b447
examples: Use CPP to support multiple GHC versions
erikd Jan 26, 2020
d386d4a
Adapt MNIST example to use original data files
jrp2014 Jan 26, 2020
99e4cd6
Reinstate import of Data.Semigroup (<>) for older ghcs
jrp2014 Jan 26, 2020
f7b53b0
Convert gen-mnist example to use LeCun training data; works
jrp2014 Jan 28, 2020
6ab97a4
Add Iris example
jrp2014 Feb 2, 2020
517da92
Add Iris example
jrp2014 Feb 2, 2020
cc547a5
Use simpler network for MNIST example
jrp2014 Feb 2, 2020
24678b0
feedforward lint
jrp2014 Feb 2, 2020
2f724dc
Further example in MNIST comments
jrp2014 Feb 2, 2020
b0b671b
Add hlinting to integration testing
jrp2014 Feb 2, 2020
ccd2679
Suspend hlinting from Travis job
jrp2014 Feb 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .hlint.yaml
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
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ before_install:
install:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- travis_retry cabal-3.0 update
- cabal-3.0 install hlint

notifications:
email: false
Expand All @@ -32,3 +33,4 @@ script:
- ./runMNIST.sh data -l 5000 -i 3
- ./runGAN-MNIST.sh data -i 3
- ./runIris.sh
- hlint .