gtjemwa / augustus

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

Regression model does not work with local transformations present #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  add the following XML to the augustus regression test model.

<LocalTransformations>
 <DerivedField name="foo" optype="categorical" dataType="string">
  <Constant>1</Constant>
 </DerivedField>
</LocalTransformations>

2.  You will then see the following error:

failed callback for row 0: {'month':'November', 'Y':445.2009393741219,
'X1':50.663214057363639, 'X2':65.039601703661603, 'Ytrue':445.21434209285331}
3.

What is the expected output? What do you see instead?

failed callback for row 0: {'month':'November', 'Y':445.2009393741219,
'X1':50.663214057363639, 'X2':65.039601703661603, 'Ytrue':445.21434209285331}
Traceback (most recent call last):

  File "/home/dlocke/devel/augustus/trunk/augustus/runlib/any_reader.py", line
287, in feed
    result = self.callback(data)

  File "/home/dlocke/devel/augustus/trunk/augustus/pmmllib/pmmlConsumer.py",
line 141, in score
    report_string = self.format_results(self.model.score())

  File "/home/dlocke/devel/augustus/trunk/augustus/pmmllib/pmmlModels.py", line
278, in score
    rules, rowtoscore = regressionSegment.update()

TypeError: unpack non-sequence

This seems to be due to the regression model not setting the update method to 
the correct value 
if local transformations are present.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by collinbe...@gmail.com on 5 Oct 2009 at 8:26

GoogleCodeExporter commented 8 years ago
Closing all Augustus 0.3.x issues / requests.  We will not address these unless 
there is an urgent need.  If possible, everyone should upgrade to 4.x of the 
PMML specification.

Original comment by collinbe...@gmail.com on 7 Feb 2012 at 3:39