222464 / htsl Goto Github PK
View Code? Open in Web Editor NEWHierarchical Temporal Sparse Learner
License: Other
Hierarchical Temporal Sparse Learner
License: Other
Hello,
a follow up, I get a bunch of unresolved includes during compilation of SparseCoding
after issue #2 , do I miss some dependencies, or is my build process wrong? Thank you!
Scanning dependencies of target HTSL
[100%] Building CXX object CMakeFiles/HTSL.dir/source/SparseCoding.cpp.o
In file included from /usr/include/c++/4.9/random:35:0,
from /home/mmm/devel/erik/HTSL/HTSL/source/sc/RecurrentSparseCoder2D.h:25,
from /home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:10:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:10:0:
/home/mmm/devel/erik/HTSL/HTSL/source/sc/RecurrentSparseCoder2D.h:97:162: error: ‘std::mt19937’ has not been declared
void createRandom(int visibleWidth, int visibleHeight, int hiddenWidth, int hiddenHeight, int receptiveRadius, int inhibitionRadius, int recurrentRadius, std::mt19937 &generator);
^
In file included from /home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:10:0:
/home/mmm/devel/erik/HTSL/HTSL/source/sc/RecurrentSparseCoder2D.h: In static member function ‘static float sc::RecurrentSparseCoder2D::sigmoid(float)’:
/home/mmm/devel/erik/HTSL/HTSL/source/sc/RecurrentSparseCoder2D.h:31:26: error: ‘exp’ is not a member of ‘std’
return 1.0f / (1.0f + std::exp(-x));
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp: In function ‘int main()’:
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:13:2: error: ‘mt19937’ is not a member of ‘std’
std::mt19937 generator(time(nullptr));
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:32:88: error: ‘generator’ was not declared in this scope
sparseCoder.createRandom(sampleWidth, sampleHeight, codeWidth, codeHeight, 12, 10, 4, generator);
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:59:2: error: ‘uniform_int_distribution’ is not a member of ‘std’
std::uniform_int_distribution<int> widthDist(0, static_cast<int>(sampleImage.getSize().x) - sampleWidth - 1);
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:59:32: error: expected primary-expression before ‘int’
std::uniform_int_distribution<int> widthDist(0, static_cast<int>(sampleImage.getSize().x) - sampleWidth - 1);
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:60:2: error: ‘uniform_int_distribution’ is not a member of ‘std’
std::uniform_int_distribution<int> heightDist(0, static_cast<int>(sampleImage.getSize().y) - sampleHeight - 1);
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:60:32: error: expected primary-expression before ‘int’
std::uniform_int_distribution<int> heightDist(0, static_cast<int>(sampleImage.getSize().y) - sampleHeight - 1);
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:89:37: error: ‘widthDist’ was not declared in this scope
int sampleX = widthDist(generator);
^
/home/mmm/devel/erik/HTSL/HTSL/source/SparseCoding.cpp:90:38: error: ‘heightDist’ was not declared in this scope
int sampleY = heightDist(generator);
^
make[2]: *** [CMakeFiles/HTSL.dir/source/SparseCoding.cpp.o] Error 1
make[1]: *** [CMakeFiles/HTSL.dir/all] Erro
Hello Erik,
I'm trying to install this library on Ubuntu 14.04,
during cmake
I get first error, that source/Main.cpp
does not exist, as defined in
https://github.com/222464/HTSL/blob/master/HTSL/CMakeLists.txt#L14
(I think I could workaround this by pointing directly to my example, eg SparseCoding.cpp
(?) )
Hi !
Thank you for your work. I have tried the reinforcement task and it seems that this task does not converge.
After several iterations the algorithms displays "NaN" values.
Please find below the output of the task:
-7.00899e+18 0 0.948908
-1.06292e+19 0 0.972548
-1.65491e+19 0 0.967148
-2.22194e+19 0 0.98005
-2.79344e+19 0 0.953838
-3.90002e+19 0 0.9353
-4.75095e+19 0 0.964271
-5.40889e+19 0 0.971343
-4.25776e+19 9.47016e+18 0.957736
-3.13734e+19 9.16898e+18 0
-1.7061e+19 1.16015e+19 0
-8.71521e+18 6.759e+18 1
-1.03274e+19 0 0
-1.04449e+19 0 1
-1.13727e+19 0 nan
-1.4182e+19 0 -nan
-1.71805e+19 0 -nan
-1.72727e+19 9.20951e+15 -nan
-1.69868e+19 3.12143e+17 -nan
-1.99713e+19 0 -nan
-1.84532e+19 1.31098e+18 -nan
-1.80037e+19 4.48716e+17 -nan
-1.29962e+19 4.09293e+18 -nan
-1.01659e+19 2.32697e+18 -nan
-9.59006e+18 5.09757e+17 -nan
-1.01607e+19 0 -nan
Regards,
Matthieu
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.