Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View an rgl plot using Microsoft Azure Machine Learning

Using an "execute R script module" in Azure-ml studio, when I plot to an rgl device, I get a broken image icon under the graphics section of the R Device output.

Is there some way to view (and even interact with) the resulting rgl device? If not is there some way to transfer the rgl output to a standard R graphics device?

Simple example:

# put this code inside the execute R script module
library(rgl)
rgl.spheres(0,0,0, radius=1, col="red")

To be clear, I know about rgl.snapshot and rgl.postscript and how to save and /or view an rgl device in a standard R session, but have not been able to make these standard approaches work in azure-ml.

like image 373
Jota Avatar asked Nov 28 '15 03:11

Jota


People also ask

Can you collect data in Azure ml studio?

You can enable data collection regardless of the model you deploy through Azure Machine Learning or other tools. To enable data collection, you need to: Open the scoring file.

How do I import dataset into azure machine learning?

Select the component to open the right pane. Select Data source, and choose the data source type. It could be HTTP or datastore. If you choose datastore, you can select existing datastores that are already registered to your Azure Machine Learning workspace or create a new datastore.


1 Answers

As of today openGL graphics are not supported on Azure Machine Learning. The rgl library is based on openGL and therefor not supported. In theory, and this is only in theory, if a package were built on webGL instead, it "should" render in the graphics window as long as you are viewing from a modern browser. That said, I do not see any webgl based r packages, only opengl to webgl conversion packages, which outputs a file.

like image 116
David Crook Avatar answered Oct 16 '22 21:10

David Crook