Comments (5)
PMML model exported from SAS:
from pypmml.
@pudr Thanks for your info, there are two issues in the error:
- 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"/>
- There is a bug of the PMML4S library on computing the residuals, I'll let you know once it's fixed.
from pypmml.
@scorebot Thanks for your prompt reply!
from pypmml.
@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.
@scorebot works like a charm. thanks a lot!
from pypmml.
Related Issues (20)
- Py4JJavaError: An error occurred while calling z:org.pmml4s.model.Model.fromFile HOT 3
- Gradient boosted tree model giving incorrect predictions HOT 2
- pmml and pkl predictions are inconsistent HOT 4
- Transformation with pyPMML? HOT 15
- File doesn't load HOT 1
- Py4JError with model.predict on Amazon EC2 HOT 4
- Py4JError: Could not find py4j jar at HOT 4
- avg() function of pmml 4.3 not averaging if one value is missing HOT 3
- Property missing HOT 2
- To include Covariate in pypmml HOT 2
- Why the predict method always returns an empty list๏ผ HOT 6
- pypmml.base.PmmlError: ('FileNotFoundException', HOT 6
- Pypmml predicts Null value of LGB-pmml HOT 6
- Categorical data field with all values valid HOT 4
- MissingValueReplacement not working as expected HOT 3
- Remediate CVE-2022-42889 Text4Shell Vulnerability HOT 2
- Release a new version 0.9.17 HOT 2
- When I load a created pmml file to back into python, it takes lot of time to predict HOT 4
- py4j.protocol.Py4JNetworkError: Answer from Java side is empty HOT 2
- Hi, I am using pypmml in a docker in a lambda and its giving me a java error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypmml.