moses python output is mangled

Bug #973581 reported by linas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenCog
Won't Fix
Medium
Matt Chapman

Bug Description

The moses python output appears to be mangled/incoherent. So, for example:

    moses -Hcp -y "+(*(6 \$1) 6)" -nexp -w6 --python=1

generates the output below. (this is for bzr rev 6753)

#!/usr/bin/python
from operator import *

#These functions allow multiple args instead of lists.
def ors(*args):
    return any(args)

def ands(*args):
    return all(args)

#score: -0.078125

def moses_eval(i):
    return Builtin: + unknown(5.9375 5.9375 Builtin: * unknown(6 6 i[0],),),

#!/usr/bin/python
from operator import *

#These functions allow multiple args instead of lists.
def ors(*args):
    return any(args)

def ands(*args):
    return all(args)

#score: -0.078125

def moses_eval(i):
    return Builtin: + unknown(6.0625 6.0625 Builtin: * unknown(6 6 i[0],),),

#!/usr/bin/python
from operator import *

#These functions allow multiple args instead of lists.
def ors(*args):
    return any(args)

def ands(*args):
    return all(args)

#score: -0.3125

def moses_eval(i):
    return Builtin: + unknown(5.875 5.875 Builtin: * unknown(6 6 i[0],),),

#!/usr/bin/python
from operator import *

#These functions allow multiple args instead of lists.
def ors(*args):
    return any(args)

def ands(*args):
    return all(args)

#score: -0.3125

def moses_eval(i):
    return Builtin: + unknown(6.125 6.125 Builtin: * unknown(6 6 i[0],),),

#!/usr/bin/python
from operator import *

#These functions allow multiple args instead of lists.
def ors(*args):
    return any(args)

def ands(*args):
    return all(args)

#score: -0.703125

def moses_eval(i):
    return Builtin: + unknown(5.8125 5.8125 Builtin: * unknown(6 6 i[0],),),

Tags: moses
linas (linasvepstas)
Changed in opencog:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.