Adding to what Gabo has answered with perspective from Watson studio and answering the deploying part of IBM Watson Machine Learning.
- what you need to do is first convert the model using pmml
Ex. Run following code in Rstudio on Watson Studio or in R Notebook in Watson Studio.
install.packages("nnet")
library(nnet)
ird <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]),
species = factor(c(rep("s",50), rep("c", 50), rep("v", 50))))
samp <- c(sample(1:50,25), sample(51:100,25), sample(101:150,25))
ir.nn2 <- nnet(species ~ ., data = ird, subset = samp, size = 2, rang = 0.1,
decay = 5e-4, maxit = 200)
install.packages("pmml")
library(pmml)
pmmlmodel <- pmml(ir.nn2)
saveXML(pmmlmodel,file = "IrisNet.xml")
The saveXML() will generate / write IrisNet.xml file to Rstudio or local space of R Notebook, you need to download this file to your local machine.
Now to deploy it to Watson machine learning service, follow following:-
Now Click Add to Project in Watson Studio Project -> Watson Machine Learning Model , Name your model and then select WML service that you want to use
Select From File Tab

Drag and drop the xml file
- Click Create and it will save it to WML service that you have selected.
- Now you can deploy this model to WML service using Deployment tab
- Simply name your deployment and Click Save
- Now you have deployed model and you can start consuming via REST API.