Skip to content

Commit 004a073

Browse files
committed
R on Azure ML
1 parent c820c77 commit 004a073

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

azure-ml-skeleton.r

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Map 1-based optional input ports to variables
2+
dataset1 <- maml.mapInputPort(1) # class: data.frame
3+
dataset2 <- maml.mapInputPort(2) # class: data.frame
4+
5+
# Contents of optional Zip port are in ./src/
6+
# source("src/yourfile.R");
7+
# load("src/yourData.rdata");
8+
9+
# Sample operation
10+
data.set = rbind(dataset1, dataset2);
11+
12+
# You'll see this output in the R Device port.
13+
# It'll have your stdout, stderr and PNG graphics device(s).
14+
plot(data.set);
15+
16+
# Select data.frame to be sent to the output Dataset port
17+
maml.mapOutputPort("data.set");

get-package-list.r

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# R code to send package list to an ML Azure output port
2+
out <- data.frame(installed.packages())
3+
maml.mapOutputPort("out")

0 commit comments

Comments
 (0)