aligusnet / mltool Goto Github PK
View Code? Open in Web Editor NEWMachine Learning Toolbox
License: BSD 3-Clause "New" or "Revised" License
Machine Learning Toolbox
License: BSD 3-Clause "New" or "Revised" License
I attempted to build it recently, and it starts out fine...
stack build
Downloaded lts-11.13 build plan.
dlist-0.8.0.4: configure
primitive-0.6.4.0: download
...then later on:
hmatrix-gsl-0.18.2.0: download
hmatrix-morpheus-0.1.1.1: configure
hmatrix-morpheus-0.1.1.1: build
hmatrix-gsl-0.18.2.0: configure
hmatrix-morpheus-0.1.1.1: copy/register
Progress: 28/29
-- While building custom Setup.hs for package hmatrix-gsl-0.18.2.0 using:
/Users/titus/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.1.0 configure --with-ghc=/Users/titus/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc --with-ghc-pkg=/Users/titus/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/pkgdb --libdir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/lib --bindir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/bin --datadir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/share --libexecdir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/libexec --sysconfdir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/etc --docdir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/doc/hmatrix-gsl-0.18.2.0 --htmldir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/doc/hmatrix-gsl-0.18.2.0 --haddockdir=/Users/titus/.stack/snapshots/x86_64-osx/lts-11.13/8.2.2/doc/hmatrix-gsl-0.18.2.0 --dependency=array=array-0.5.2.0 --dependency=base=base-4.10.1.0 --dependency=hmatrix=hmatrix-0.18.2.0-9WbiaMAYBVLIUMmdJ00a5 --dependency=process=process-1.6.1.0 --dependency=random=random-1.1-LLUGZ7T9DqQ5vN0Jbcd0We --dependency=vector=vector-0.12.0.1-81HFvG2McTgAiNXCyGXulK --extra-lib-dirs=/usr/lib
Process exited with code: ExitFailure 1
Logs have been written to: /Users/titus/GAMES/mltool/.stack-work/logs/hmatrix-gsl-0.18.2.0.log
Configuring hmatrix-gsl-0.18.2.0...
Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: The pkg-config package 'gsl' is
required but it could not be found.
I am using stack version 1.6.3
Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0
Sometimes some is the test cab fail due to numerical issues. In most case (like 98%) they run just fine.
e.g.:
mltool $ ./scripts/test_runner.py
mltool-0.1.0.0: test (suite: mltool-test)
running unit tests using command: /Users/ai/src/mltool/.stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/mltool-test/mltool-test --jxml=mltool-test.xml
[============================================================] 100.0%
MachineLearning.SoftmaxClassifier.learn-Conjugate Gradient FR 2
MachineLearning.SoftmaxClassifier.learn-Conjugate Gradient PR 1
MachineLearning.NeuralNetwork.learn-ReLU - Softmax: BFGS 1
MachineLearning.MultiSvmClassifier.learn-BFGS 1
MachineLearning.Classification.OneVsAll.optPath-Gradient Descent 1
From the Stackage Nightly build:
src/MachineLearning/Regression.hs:38:19: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
(and originally defined in ‘GHC.Base’)
or ‘Numeric.LinearAlgebra.<>’,
imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
|
38 | in (LA.inv (trX <> x) <> trX) #> y
| ^^
src/MachineLearning/Regression.hs:38:25: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
(and originally defined in ‘GHC.Base’)
or ‘Numeric.LinearAlgebra.<>’,
imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
|
38 | in (LA.inv (trX <> x) <> trX) #> y
| ^^
src/MachineLearning/Regression.hs:46:20: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
(and originally defined in ‘GHC.Base’)
or ‘Numeric.LinearAlgebra.<>’,
imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
|
46 | in (LA.pinv (trX <> x) <> trX) #> y
| ^^
src/MachineLearning/Regression.hs:46:26: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at src/MachineLearning/Regression.hs:10:8-33
(and originally defined in ‘GHC.Base’)
or ‘Numeric.LinearAlgebra.<>’,
imported from ‘Numeric.LinearAlgebra’ at src/MachineLearning/Regression.hs:30:31-34
|
46 | in (LA.pinv (trX <> x) <> trX) #> y
| ^^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.