Selva163 / augustus

Automatically exported from code.google.com/p/augustus
0 stars 0 forks source link

Augustus raises an XMLValidationError for valid XML that is invalid PMML #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the example traceback below I misspelled the name of a field in the mining 
schema.  This caused Augustus to raise an XMLValidationError but I have a 
quibble with the name of the exception.  This is valid XML but invalid PMML so 
the exception should be a PMMLValidationError.

  File "/home/export/dlocke/devel/augustus/augustus-aim/augustus/core/xmlbase.py", line 1667, in endElement
    last.validate(recurse=False, exception=True)
  File "/home/export/dlocke/devel/augustus/augustus-aim/augustus/core/xmlbase.py", line 827, in validate
    self.xsd.validate(self)
  File "/home/export/dlocke/devel/augustus/augustus-aim/augustus/core/xmlbase.py", line 1514, in validate
    xml.post_validate()
  File "/home/export/dlocke/devel/augustus/augustus-aim/augustus/core/pmml41.py", line 1653, in post_validate
    self.setupContext(model, model)
  File "/home/export/dlocke/devel/augustus/augustus-aim/augustus/core/pmml41.py", line 1677, in setupContext
    miningSchema.top_validate_parentContext(parentContext, self.dataDictionary)
  File "/home/export/dlocke/devel/augustus/augustus-aim/augustus/core/pmml41.py", line 7510, in top_validate_parentContext
    raise XMLValidationError, "Top-level MiningSchema %s field \"%s\" not found in the DataDictionary" % (usageType, name)
XMLValidationError: Top-level MiningSchema active field "misspelled" not found 
in the DataDictionary.

Original issue reported on code.google.com by dlo...@opendatagroup.com on 13 Apr 2012 at 4:52

GoogleCodeExporter commented 8 years ago
This is a request for PMML errors to come from pmml41.py in additional to XML 
errors.

Original comment by collinbe...@gmail.com on 13 Apr 2012 at 5:49

GoogleCodeExporter commented 8 years ago

Original comment by collinbe...@gmail.com on 13 Apr 2012 at 5:50

GoogleCodeExporter commented 8 years ago

Original comment by collinbe...@gmail.com on 13 Apr 2012 at 5:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Resolved in trunk as of 709 commit
Now throws a PMML Validation Error is such situations

Original comment by collinbe...@gmail.com on 22 May 2012 at 8:33