lib/eps/pmml/loader.rb in eps-0.3.8 vs lib/eps/pmml/loader.rb in eps-0.3.9
- old
+ new
@@ -220,10 +220,10 @@
value: value
}
else
operator = xml_predicate.attribute("operator").value
value = xml_predicate.attribute("value").value
- value = value.to_f if operator == "greaterThan"
+ value = value.to_f if operator == "greaterThan" || operator == "lessOrEqual"
field = xml_predicate.attribute("field").value
field = derived_fields[field] if derived_fields[field]
{
field: field,
operator: operator,