Basic Question Moses Combo Program

41 views
Skip to first unread message

Lance White

unread,
Feb 9, 2020, 5:26:20 AM2/9/20
to opencog
Hi to All,

A really basic question about Moses.  So I can run the examples and test files no problems.  But how do I use the output combo program?

moses -H it -i disjunction.csv

0 or($1 $2 $3) 

-1 true 

-1 or($1 $2) 


Let's say I want to use the following on a data set how do I feed it values and get a result output by moses?


 or($1 $2 $3) 


Thanks! 


Lance

Linas Vepstas

unread,
Feb 9, 2020, 4:30:19 PM2/9/20
to opencog
Well, if you have three values, each being either true or false, well, just pipe those values through the logical or function, and you're done.

Yes, this sounds silly, doesn't it?  Every user of moses has built some large, complex system around it to feed it tables of data and then to process other data using these outputs. Unfortunately, all of these are proprietary systems, but it occurs to me that maybe one of these could be open-sourced. I'll have to ask. The one I know best can take structured and unstructured data from a variety of sources, filter and process these into training-data sets, collect up a number of best-fit moses colbo results, average them together into an ensemble, and then output that as a data-processing pipeline: you feed it tables (or individual lines from tables) and it makes predictions based on that input.  Practical experience shows that it is more-or-less comparable to "decision forests" (a decision forest being an ensemble of decision trees; a decision tree being kind-of-like a combo program but obtained from different algorithms).  Both moses and decision-forests max out at a certain level of accuracy, beyond with it takes an ungodly amount of training time to improve on.  There was a nascent effort to apply deep learning techniques, but it foundered on a lack of funding.

I'm not sure I answered your question, but that's what I've got.

-- Linas

--
cassette tapes - analog TV - film cameras - you

Michael Duncan

unread,
Feb 9, 2020, 10:53:06 PM2/9/20
to opencog
if you are familiar with R you can use the wrapper code i wrote for binary classification problems:  https://github.com/mjsduncan/Rmoses

the documentation is crappy and it needs to be rewritten in the tidyverse idiom but it handles producing and scoring combos on training and testing partitions and producing feature counts from model ensembles.

it includes a combo parser so you can try the combos on new samples.

Misgana Bayetta

unread,
Feb 10, 2020, 2:17:12 AM2/10/20
to opencog
I use the eval-table program which is built and installed together with moses. You can find out more about how to use it by typing man eval-table.

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/e4551f98-ff7a-4768-ae4a-fc98d4fe9383%40googlegroups.com.


--
Belachew Misgana Bayetta
'For everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened ' --Jesus
'The future belongs to those who believe in the beauty of their dreams' --Eleanor Rusvelt

Lance White

unread,
Feb 10, 2020, 4:09:03 AM2/10/20
to opencog
Hey Linas, I did think when searching docs there was an absence of stuff for sure also more broadly in google.  I see a couple of options popped up and have some great leads.  Hopefully if there are any others they find their way to this thread.  Helping anyone else searching.  Moses does seem to have some great applications at first glance and looking forward to exploring it's capability further.  Thanks!

Lance White

unread,
Feb 10, 2020, 4:12:21 AM2/10/20
to opencog
Aweome Misgana, I did not find one mention of eval-table or missed it in my skim reading!  Looks like a really simple option to test out and see how it goes.  Really appreciate the ref.


On Monday, 10 February 2020 18:17:12 UTC+11, Misgana Bayetta wrote:
I use the eval-table program which is built and installed together with moses. You can find out more about how to use it by typing man eval-table.

On Sun, Feb 9, 2020 at 6:26 PM Lance White <lgwaus...@gmail.com> wrote:
Hi to All,

A really basic question about Moses.  So I can run the examples and test files no problems.  But how do I use the output combo program?

moses -H it -i disjunction.csv

0 or($1 $2 $3) 

-1 true 

-1 or($1 $2) 


Let's say I want to use the following on a data set how do I feed it values and get a result output by moses?


 or($1 $2 $3) 


Thanks! 


Lance

--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ope...@googlegroups.com.

Lance White

unread,
Feb 10, 2020, 4:14:58 AM2/10/20
to opencog
Thanks Michael, I am not fluent in R but can hack my way through for sure!  Really great to have this option. I had downloaded it, but did not realise it can evaluate too.  Will definitely spin it up and explore functionality.

Michael Duncan

unread,
Feb 10, 2020, 10:43:52 PM2/10/20
to opencog
lance, apropos to your comment about not finding documentation on eval-table, there is a combo parser for Rmoses because i didn't know it existed when i was writing the code :P
feel free to ask questions about it here or the moses channel in OpenCog slack if you do slack.

Lance White

unread,
Feb 11, 2020, 5:09:15 AM2/11/20
to opencog
Good stuff Michael!  Nice that it's all there in Rmoses.  I have time on this planned for the weekend and will definitely see how I go getting some parsing done in Rmoses.  I have slack and am subscribed to the moses channel, so i will post there for some guidance if hit issues. ;-)
Reply all
Reply to author
Forward
0 new messages