Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert ARIMA to PMML in 'R' #7

Open
vkarthi46 opened this issue Apr 17, 2016 · 2 comments
Open

Convert ARIMA to PMML in 'R' #7

vkarthi46 opened this issue Apr 17, 2016 · 2 comments

Comments

@vkarthi46
Copy link

vkarthi46 commented Apr 17, 2016

is there a standard way to export a time series in R? r2pmml would work,but when i try to use the library , perhaps incorrectly ,i get an error..

For Example, My code look like below..

library(forecast)

library("devtools")
library(RCurl)
library(httr)
set_config( config( ssl_verifypeer = 0L ) )
install_github(repo = "jpmml/r2pmml",force = TRUE)
library("r2pmml")

model=auto.arima(ts_data)
r2pmml(model, "ets.pmml")

and the error i get this..

Apr 17, 2016 7:10:57 PM org.jpmml.rexp.Main run
INFO: Parsing RDS..
Apr 17, 2016 7:10:57 PM org.jpmml.rexp.Main run
INFO: Parsed RDS in 0 ms.
Apr 17, 2016 7:10:57 PM org.jpmml.rexp.Main run
INFO: Initializing default Converter
Exception in thread "main" java.lang.IllegalArgumentException
at org.jpmml.rexp.ConverterFactory.newConverter(ConverterFactory.java:46)
at org.jpmml.rexp.Main.run(Main.java:134)
at org.jpmml.rexp.Main.main(Main.java:97)
Error in .convert(tempfile, file, ...) : 1
In addition: Warning message:
running command '"java" -cp "C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/guava-19.0.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/istack-commons-runtime-2.21.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/jaxb-core-2.2.11.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/jaxb-runtime-2.2.11.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/jcommander-1.48.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/jpmml-converter-1.0.3.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/jpmml-r-1.1.4.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/jpmml-xgboost-1.0.2.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/pmml-agent-1.2.11.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/pmml-model-1.2.11.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/pmml-model-metro-1.2.11.jar;C:/Users/vkarth2/Documents/R/R-3.2.4/library/r2pmml/java/pmml-schema-1.2.11.jar;C:/Users/vka [... truncated]

@vkarthi46 vkarthi46 changed the title convert ARIMA to PMML Convert ARIMA to PMML in 'R' Apr 17, 2016
@vruusmann
Copy link
Member

The list of supported R model types is given in the README file of the JPMML-R project: https://github.com/jpmml/jpmml-r/blob/master/README.md

As one can see, the forecast::Arima model type is not listed there at the moment.

The support for ARIMA models should become possible once PMML 4.3 is released. You can track the status of the relevant feature request in DMG issue tracker (requires signup): http://mantis.dmg.org/view.php?id=8

@ssriganesh
Copy link

@vruusmann ,Just wanted the check if the r2pmml supports the Arima with 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants