Giter Club home page Giter Club logo

Comments (5)

pudr avatar pudr commented on August 20, 2024

PMML model exported from SAS:

iris_Decision_Tree_PMML.txt

from pypmml.

scorebot avatar scorebot commented on August 20, 2024

@pudr Thanks for your info, there are two issues in the error:

  1. The input data should contain the target value because the model defines the residuals for each target value, for example:
<OutputField name="R_classIris_setosa" displayName="Residual: class=Iris-setosa" optype="continuous" dataType="double" targetField="class" feature="residual" value="IRIS-SETOSA"/>
<OutputField name="R_classIris_versicolor" displayName="Residual: class=Iris-versicolor" optype="continuous" dataType="double" targetField="class" feature="residual" value="IRIS-VERSICOLOR"/>
<OutputField name="R_classIris_virginica" displayName="Residual: class=Iris-virginica" optype="continuous" dataType="double" targetField="class" feature="residual" value="IRIS-VIRGINICA"/>
  1. There is a bug of the PMML4S library on computing the residuals, I'll let you know once it's fixed.

from pypmml.

pudr avatar pudr commented on August 20, 2024

@scorebot Thanks for your prompt reply!

from pypmml.

scorebot avatar scorebot commented on August 20, 2024

@pudr I have fixed the issue of PMML4S. Please, reinstall the latest version from Github by the following command:

pip install --upgrade git+https://github.com/autodeployai/pypmml.git

If you want the residuals, you need to input the target class value, for example:

result = model.predict({'sepal_length': 5.1, 'sepal_width': 3.5, 'petal_length': 1.4, 'petal_width': 0.2, 'class': 'IRIS-SETOSA'})

Otherwise, you'll get none values for residuals.
Please, let me know if you still have a problem.

from pypmml.

pudr avatar pudr commented on August 20, 2024

@scorebot works like a charm. thanks a lot!

from pypmml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.