Using bayes functions in context?
Posted: Fri Dec 18, 2009 5:19 pm
I am running into this issue -- when trying to use the bayes functions in context MAIN, it works as expected. When trying to use these in a defined function, I am getting an error with bayes-query.
Anyone have any insight as to why this is happening? Am I not defining something properly?
Thanks in advance.
Code: Select all
> (bayes-train '(A A B C C) '(A B B C C C) 'L)
(5 6)
> (bayes-query '(A C) L)
(0.579614219 0.420385781)
Code: Select all
> (context 'TEST)
TEST
TEST> (bayes-train '(A A B C C) '(A B B C C C) 'L)
(5 6)
TEST> (bayes-query '(A C) L)
ERR: context expected in function bayes-query : TEST:L
Thanks in advance.