Giter VIP home page Giter VIP logo

Comments (4)

vruusmann avatar vruusmann commented on August 18, 2024

All JPMML conversion libraries (including the JPMML-H2O library) are generating PMML markup that conforms to the latest PMML schema/specification version. Currently it's PMML 4.4.

The main value of following the latest PMML schema version is that it allows me to generate a maximally concise/compact PMML markup.

You can perform the downgrade manually, by replacing all compact/concise PMML 4.4-specific fragments with more bloated PMML 4.2 one. This downgrade process has been automated for most common scenarios as a JPMML-Transformer library, but it's not publicly available.

from jpmml-h2o.

vruusmann avatar vruusmann commented on August 18, 2024

Are you interested in learning how to convert a PMML 4.4 GBM model to a PMML 4.2 GBM model manually?

For starters, replace the XML namespace declaration:

PMML 4.4:

<PMML xmlns="http://www.dmg.org/PMML-4_4" xmlns:data="http://jpmml.org/jpmml-model/InlineTable" version="4.4">
</PMML>

PMML 4.2:

<PMML xmlns="http://www.dmg.org/PMML-4_2" xmlns:data="http://jpmml.org/jpmml-model/InlineTable" version="4.2">
</PMML>

When done, try to import this fake PMML 4.2 file into your legacy software and see what happens. If there's an error, please share it with me here, and I'll advise what other PMML content tweaks might be necessary.

from jpmml-h2o.

vagarciave avatar vagarciave commented on August 18, 2024

There is an error in line 36, this is what line 36 has:

<MiningModel functionName="regression">

from jpmml-h2o.

vruusmann avatar vruusmann commented on August 18, 2024

There is an error in line 36, this is what line 36 has:

The MiningModel@functionName="regression" attribute is perfectly valid according to PMML 4.2:
http://dmg.org/pmml/v4-2-1/MultipleModels.html

Perhaps you should open a parallel issue with your legacy software vendor, and ask for their explanation. Perhaps they don't support the MiningModel element at all?

from jpmml-h2o.

Related Issues (15)

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.