Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Added cluster config for caret example (#237)
Browse files Browse the repository at this point in the history
* Added cluster config for caret

* Reverted changes for installation

* Reverted fit model

* Changed to low priority
  • Loading branch information
brnleehng authored Mar 21, 2018
1 parent 4e11306 commit fa2cdfc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/caret/caret_example.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ generateCredentialsConfig("credentials.json")
setCredentials("credentials.json")

# generate cluster config json file
generateClusterConfig("cluster.json")
generateClusterConfig("cluster-caret.json")

# Creating an Azure parallel backend
cluster <- makeCluster(clusterSetting = "cluster.json")
cluster <- makeCluster(clusterSetting = "cluster-caret.json")

# Register your Azure parallel backend to the foreach implementation
registerDoAzureParallel(cluster)
Expand Down
23 changes: 23 additions & 0 deletions samples/caret/cluster-caret.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "caret-pool",
"vmSize": "Standard_D2_v2",
"maxTasksPerNode": 1,
"poolSize": {
"dedicatedNodes": {
"min": 0,
"max": 0
},
"lowPriorityNodes": {
"min": 3,
"max": 3
},
"autoscaleFormula": "QUEUE"
},
"containerImage": "jrowen/dcaret:latest",
"rPackages": {
"cran": ["MLmetrics", "e1071"],
"github": [],
"bioconductor": []
},
"commandLine": []
}

0 comments on commit fa2cdfc

Please sign in to comment.