Search found 8 matches

by yg
Wed Oct 22, 2008 7:37 am
Forum: SMILE
Topic: Machine learning.
Replies: 3
Views: 7853

The code looks ok, but don't you want to use a dynamic Bayesian network? Or will the evidence be fixed once it's observed?

I do indeed want the evidence to change. Dynamic Bayesian Network it is. Do you have any code that does that kind of things? So, each time an evidence is set, the node's ...
by yg
Tue Oct 21, 2008 10:45 am
Forum: SMILE
Topic: Machine learning.
Replies: 3
Views: 7853

Machine learning.

I am looking to update the probability of a node given evidence gathered in real time (or as close to real time as I can get). Am I right in thinking that something akin to the following will work:

cout << "Before p = " << prob << endl; // Generic probability before learning.
for (int i=0; i<max ...
by yg
Fri Sep 19, 2008 1:20 pm
Forum: SMILE
Topic: ICPC linking problem on linux
Replies: 11
Views: 20680

Many thanks indeed. It could well be something off with Slackware. Here is the output of the compile line above:



/usr/local/include/smile/defcpt.h(19): warning #654: overloaded virtual function "DSL_nodeDefinition::GetDefinition" is only partially overridden in class "DSL_cpt"
class DSL_cpt ...
by yg
Fri Sep 19, 2008 7:57 am
Forum: SMILE
Topic: ICPC linking problem on linux
Replies: 11
Views: 20680

My system is a slackware 11 machine (Linux styx 2.6.18.8 #2 SMP Thu Mar 15 11:37:13 GMT 2007 i686 i686 i386 GNU/Linux) but that did not work either. I have libstdc++.so.6.0.3 installed.

This is really odd....

styx:~/smile-tutorial
$ icc -w0 -I/usr/local/include/smile -o simlearn4 smilearn4.cpp ...
by yg
Thu Sep 18, 2008 3:00 pm
Forum: SMILE
Topic: ICPC linking problem on linux
Replies: 11
Views: 20680

I copied the example 4 from the tutorial and got this:

$ icc -w0 -I/usr/local/include/smile -lstdc++ -o simlearn4 smilearn4.cpp /usr/local/lib/libsmile.a /usr/local/lib/libsmilearn.a

/usr/local/lib/libsmilearn.a(data_parser.o)(.text+0x583b): In function `data_parser::GetNextValidInput ...
by yg
Thu Sep 18, 2008 10:42 am
Forum: SMILE
Topic: ICPC linking problem on linux
Replies: 11
Views: 20680

Thank you for the help!

Tried with icc, icpc and gcc. All of them give me the same linker error.

$ cc -lboost_filesystem-il-mt-1_36 -lm -llog4cxx -lstdc++ ./singleton_log4cxx.o dice.o /usr/local/lib/libsmile.a /usr/local/lib/libsmilearn.a
/usr/local/lib/libsmilearn.a(data_parser.o)(.text+0x583b ...
by yg
Thu Sep 18, 2008 7:35 am
Forum: SMILE
Topic: ICPC linking problem on linux
Replies: 11
Views: 20680

Re: ICPC linking problem on linux

Anyone has any ideas?

It looks like missing reference to iostreams. You can try adding libstdc++ to the list of libraries your project is using.

Already doing that:

icpc -o dices -I/usr/local/include/boost-1_36 -lboost_filesystem-il-mt-1_36 -lm -llog4cxx -lstdc++ -pthread ./singleton_log4cxx.o ...
by yg
Wed Sep 17, 2008 3:56 pm
Forum: SMILE
Topic: ICPC linking problem on linux
Replies: 11
Views: 20680

ICPC linking problem on linux

I am getting this error which I cannot solve.

Anyone has any ideas?


icpc -I/usr/local/include/boost-1_36 -lboost_filesystem-il-mt-1_36 -I/usr/local/include/smile -MM ./singleton_log4cxx.cpp ./dice.cpp > buildfiles.d
icpc -I/usr/local/include/smile -ansi -w1 -O3 -ipo -no-prec-div -xP -ip -unroll ...