xiaobogudeMacBook-Pro:bin xiaobogu$ ./testdbg
(Optionally, you can run specific tests by passing a string as an argument. Only tests containing the string will be executed.)
GAgglomerativeClusterer Passed
GAssignment - linearAssignment Passed
GAssignment - GSimpleAssignment Passed
GAtomicCycleFinder Passed
GAttributeSelector Passed
GAutoFilter Passed
GBag Passed
GBagOfRecommenders Passed
GBaselineLearner Passed
GBaselineRecommender Passed
GBayesianModelAveraging Passed
GBayesianModelCombination Passed
GBayesNet Passed
GBezier Passed
GBits Passed
GBitTable Passed
GReverseBits Passed
GBrandesBetweenness Passed
GBucket Passed
GCategoricalSamplerBatch Passed
GCompressor Passed
GCoordVectorIterator Passed
GCrypto Passed
GCycleCut Passed
GDecisionTree Passed
GDiff Passed
GDijkstra Passed
GDom Passed
GDynamicSystemStateAligner Passed
GError.h - to_str Passed
GFloydWarshall Passed
GFourier Passed
GGaussianProcess Passed
GGraphCut Passed
GHashTable Passed
GHiddenMarkovModel Passed
GIncrementalTransform Passed
GInstanceRecommender Passed
GKdTree Passed
GKeyPair Passed
GKNN
serialization shouldn't influence accuracy this much
FAILED!!!
GLinearDistribution Passed
GLinearProgramming Passed
GLinearRegressor Passed
GManifold Passed
GMath Passed
GMatrix Passed
GMatrix::parseArff quoting Passed
GMatrixFactorization Passed
GMeanMarginsTree Passed
GMixtureOfGaussians Passed
GNaiveBayes Passed
GNaiveInstance Passed
GNeuralNet Passed
GNeuralNetPseudoInverse Passed
GNonlinearPCA Passed
GPackageServer Passed
GPCARotateOnly Passed
GPolynomial Passed
GPriorityQueue Passed
GProbeSearch Passed
GRand Passed
GRandMersenneTwister Passed
GRandomForest Passed
GRelation Passed
GResamplingAdaBoost Passed
GReservoirNet
accuracy has regressed. Expected at least 0.773. Only got 0.769. (Sometimes, harmless changes that affect random orderings can trigger small regressions, so don't panic yet.)
FAILED!!!
GRunningCovariance Passed
GSelfOrganizingMap Passed
GShortcutPruner Passed
GSparseClusterRecommender Passed
GSparseMatrix Passed
GSpinLock Passed
GSubImageFinder Passed
GSubImageFinder2 Passed
GSupervisedLearner Passed
GVec Passed
Skipping the command-line tool tests because the command-line tools are not found in a path specified in the $PATH environment variable.
Done.
xiaobogudeMacBook-Pro:bin xiaobogu$
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for calling my attention to these issues! I intend for my implementations to be deterministic across platforms. I will try to debug this when I find a Mac that I can use.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying build the 2014-07-05 release on Mac 10.9.5 64bit, I come up with the following waring messages when making
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GNeighborFinder.cpp -o ../../obj/GClasses/dbg/GNeighborFinder.o
GNeighborFinder.cpp:2092:17: warning: field 'm_pPreprocessed' is uninitialized when used here [-Wuninitialized]
m_pPreprocessed(m_pPreprocessed), // don't panic, this is intentional. m_pPreprocessed is initialized in the previous line, and we do thi...
^
1 warning generated.
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GNeuralNet.cpp -o ../../obj/GClasses/dbg/GNeuralNet.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GOptimizer.cpp -o ../../obj/GClasses/dbg/GOptimizer.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GParticleSwarm.cpp -o ../../obj/GClasses/dbg/GParticleSwarm.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GPlot.cpp -o ../../obj/GClasses/dbg/GPlot.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GPolicyLearner.cpp -o ../../obj/GClasses/dbg/GPolicyLearner.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GPolynomial.cpp -o ../../obj/GClasses/dbg/GPolynomial.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GPriorityQueue.cpp -o ../../obj/GClasses/dbg/GPriorityQueue.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GRayTrace.cpp -o ../../obj/GClasses/dbg/GRayTrace.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GReverseBits.cpp -o ../../obj/GClasses/dbg/GReverseBits.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GRect.cpp -o ../../obj/GClasses/dbg/GRect.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GRand.cpp -o ../../obj/GClasses/dbg/GRand.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GRecommender.cpp -o ../../obj/GClasses/dbg/GRecommender.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GRecommenderLib.cpp -o ../../obj/GClasses/dbg/GRecommenderLib.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GRegion.cpp -o ../../obj/GClasses/dbg/GRegion.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GReinforcement.cpp -o ../../obj/GClasses/dbg/GReinforcement.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GSDL.cpp -o ../../obj/GClasses/dbg/GSDL.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GSelfOrganizingMap.cpp -o ../../obj/GClasses/dbg/GSelfOrganizingMap.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GSmtp.cpp -o ../../obj/GClasses/dbg/GSmtp.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GSocket.cpp -o ../../obj/GClasses/dbg/GSocket.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GSparseMatrix.cpp -o ../../obj/GClasses/dbg/GSparseMatrix.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GGridSearch.cpp -o ../../obj/GClasses/dbg/GGridSearch.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GStemmer.cpp -o ../../obj/GClasses/dbg/GStemmer.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GString.cpp -o ../../obj/GClasses/dbg/GString.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GSystemLearner.cpp -o ../../obj/GClasses/dbg/GSystemLearner.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GText.cpp -o ../../obj/GClasses/dbg/GText.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GThread.cpp -o ../../obj/GClasses/dbg/GThread.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GTime.cpp -o ../../obj/GClasses/dbg/GTime.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GTokenizer.cpp -o ../../obj/GClasses/dbg/GTokenizer.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GTransform.cpp -o ../../obj/GClasses/dbg/GTransform.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GVec.cpp -o ../../obj/GClasses/dbg/GVec.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GWave.cpp -o ../../obj/GClasses/dbg/GWave.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GWidgets.cpp -o ../../obj/GClasses/dbg/GWidgets.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c GWindows.cpp -o ../../obj/GClasses/dbg/GWindows.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c sha1.cpp -o ../../obj/GClasses/dbg/sha1.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c sha2.cpp -o ../../obj/GClasses/dbg/sha2.o
g++ -D_THREAD_SAFE -DDARWIN -I/usr/X11/include -no-cpp-precomp -g -D_DEBUG -c usage.cpp -o ../../obj/GClasses/dbg/usage.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../../lib/libGClassesDbg.a(GWindows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C wizard dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_wizarddbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_wizard/dbg/main.o
g++ -g -o ../../bin/waffles_wizarddbg ../../obj/waffles_wizard/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C audio dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_audiodbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_audio/dbg/main.o
g++ -g -o ../../bin/waffles_audiodbg ../../obj/waffles_audio/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C cluster dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_clusterdbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_cluster/dbg/main.o
g++ -g -o ../../bin/waffles_clusterdbg ../../obj/waffles_cluster/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C dimred dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_dimreddbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_dimred/dbg/main.o
g++ -g -o ../../bin/waffles_dimreddbg ../../obj/waffles_dimred/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C learn dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_learndbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_learn/dbg/main.o
g++ -g -o ../../bin/waffles_learndbg ../../obj/waffles_learn/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C plot dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_plotdbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_plot/dbg/main.o
g++ -g -o ../../bin/waffles_plotdbg ../../obj/waffles_plot/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C recommend dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_recommenddbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_recommend/dbg/main.o
g++ -g -o ../../bin/waffles_recommenddbg ../../obj/waffles_recommend/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C sparse dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_sparsedbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_sparse/dbg/main.o
g++ -g -o ../../bin/waffles_sparsedbg ../../obj/waffles_sparse/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C test dbg
Computing gcov dependencies for main.cpp
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/testdbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/test/dbg/main.o
g++ -g -o ../../bin/testdbg ../../obj/test/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C transform dbg
Computing dbg dependencies for main.cpp
Computing opt dependencies for main.cpp
rm -f ../../bin/waffles_transformdbg
g++ -I/opt/local/include -I/usr/local/include -I/sw/include -I../../../src -I/usr/local/include -I/usr/X11/include -D_THREAD_SAFE -DDARWIN -no-cpp-precomp -g -D_DEBUG -c main.cpp -o ../../obj/waffles_transform/dbg/main.o
g++ -g -o ../../bin/waffles_transformdbg ../../obj/waffles_transform/dbg/main.o -L/opt/local/lib -L/usr/local/lib -L/sw/lib -framework AppKit ../../lib/libGClassesDbg.a -lpthread
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/sw/lib'
xiaobogudeMacBook-Pro:src xiaobogu$
And some programs does not pass during test
xiaobogudeMacBook-Pro:bin xiaobogu$ ./testdbg
(Optionally, you can run specific tests by passing a string as an argument. Only tests containing the string will be executed.)
GAgglomerativeClusterer Passed
GAssignment - linearAssignment Passed
GAssignment - GSimpleAssignment Passed
GAtomicCycleFinder Passed
GAttributeSelector Passed
GAutoFilter Passed
GBag Passed
GBagOfRecommenders Passed
GBaselineLearner Passed
GBaselineRecommender Passed
GBayesianModelAveraging Passed
GBayesianModelCombination Passed
GBayesNet Passed
GBezier Passed
GBits Passed
GBitTable Passed
GReverseBits Passed
GBrandesBetweenness Passed
GBucket Passed
GCategoricalSamplerBatch Passed
GCompressor Passed
GCoordVectorIterator Passed
GCrypto Passed
GCycleCut Passed
GDecisionTree Passed
GDiff Passed
GDijkstra Passed
GDom Passed
GDynamicSystemStateAligner Passed
GError.h - to_str Passed
GFloydWarshall Passed
GFourier Passed
GGaussianProcess Passed
GGraphCut Passed
GHashTable Passed
GHiddenMarkovModel Passed
GIncrementalTransform Passed
GInstanceRecommender Passed
GKdTree Passed
GKeyPair Passed
GKNN
serialization shouldn't influence accuracy this much
FAILED!!!
GLinearDistribution Passed
GLinearProgramming Passed
GLinearRegressor Passed
GManifold Passed
GMath Passed
GMatrix Passed
GMatrix::parseArff quoting Passed
GMatrixFactorization Passed
GMeanMarginsTree Passed
GMixtureOfGaussians Passed
GNaiveBayes Passed
GNaiveInstance Passed
GNeuralNet Passed
GNeuralNetPseudoInverse Passed
GNonlinearPCA Passed
GPackageServer Passed
GPCARotateOnly Passed
GPolynomial Passed
GPriorityQueue Passed
GProbeSearch Passed
GRand Passed
GRandMersenneTwister Passed
GRandomForest Passed
GRelation Passed
GResamplingAdaBoost Passed
GReservoirNet
accuracy has regressed. Expected at least 0.773. Only got 0.769. (Sometimes, harmless changes that affect random orderings can trigger small regressions, so don't panic yet.)
FAILED!!!
GRunningCovariance Passed
GSelfOrganizingMap Passed
GShortcutPruner Passed
GSparseClusterRecommender Passed
GSparseMatrix Passed
GSpinLock Passed
GSubImageFinder Passed
GSubImageFinder2 Passed
GSupervisedLearner Passed
GVec Passed
Skipping the command-line tool tests because the command-line tools are not found in a path specified in the $PATH environment variable.
Done.
xiaobogudeMacBook-Pro:bin xiaobogu$
Another strange things is the make command sometimes output a test program and sometimes outputs a testdbg program
Thanks for calling my attention to these issues! I intend for my implementations to be deterministic across platforms. I will try to debug this when I find a Mac that I can use.
The GReservoirNet test is fixed.
The GKNN test does not repro on the mac I have. Maybe the issue was fixed?
The Makefile contains two rules, "make dbg" and "make opt". The former builds "testdbg". The latter builds "test".
Thanks!
I found a mac that reprocs the GKNN failure. It should be fixed now.