To save a python or R-generated model as a PMML for Java calls

Source: Internet
Author: User
Tags pmml

To view JPMML Documentation: Https://github.com/jpmml/jpmml-evaluator


Other reference materials

1, xgboost model file into the PMML

2, JPMML Example Random Forest

3, machine learning algorithm Online deployment method

4, Java Code examples for Org.jpmml.manager.PMMLManager


Related skills

1. Update R version Information

Install.packages ("Installr")

Library (INSTALLR)

Updater ()


2, R2PMML installation and application

Library ("Devtools")

Install_github (repo = "JPMML/R2PMML")

URL: https://github.com/jpmml/r2pmml

3. How Maven Installs

(1) Download Maven's installation package apache-maven-3.5.0-bin.zip;

(2) Extract to a fixed folder. Mine is to extract into the C:\tools directory, update maven only need to download the new MAVEN package, extract to this directory and follow the third step to modify the environment variables;

(3) Configure MAVEN environment variables: First configure the M2_HOME environment variable, create a new system variable: m2_home, the path is: D:\opt\apache-maven-3.5.0. Then configure the PATH environment variable to add "%m2_home%\bin" at the end of the path value

(4) Click OK, open cmd window: Enter Mvn-version, the following content indicates the installation was successful.

4. class file Decompile tool: Jd-gui.exe (install free)

5, under Windows similar to Linux under the grep

You can use Find and findst, such as

ipconfig | findstr/i "IPv4"

ipconfig | find/i "IPv4"

/I: Specifies that the search is case-insensitive.

Example:

D:\>pip Freeze | Find "SCI"

scikit-image==0.12.3

scikit-learn==0.18

scipy==0.17.0

(Note: string must be added "" s)

Or:

D:\>pip Freeze | Findstr SCI

scikit-image==0.12.3

scikit-learn==0.18

scipy==0.17.0

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.