The file is part of the BURN project (learing multi-objective rules).
Because learning is not the filling a pail, but the lighting of a fire.
local Object=require("object")
local Split=Object:new{txt,rule, op, val}
function Split:show() return self.txt..self.op..self.val end
function Split.eq(x, txt, val, score)
return Split:new{txt=txt,
score= score,
val = val,
op = "=",
rule = function(r) return x(r)==val end}
end
function Split.gt(x, txt,val,score)
return Split:new{txt=txt,
score= score,
val = val,
op = ">",
rule = function(r) return x(r) > val end}
end
function Split.le(x,txt, val,score)
return Split:new{txt=txt,
score= score,
val = val,
op = "<=",
rule = function(r) return x(r) <= val end}
end
return Split