Created
November 7, 2016 06:46
-
-
Save ProFire/5d65b74c15636bfbe4041adf43d00a0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Creating Service | |
curl -X PUT "http://localhost:8080/services/covert" -d '{ | |
"mllib":"xgboost", | |
"description":"regression prediction service", | |
"type":"supervised", | |
"parameters":{ | |
"input":{ | |
"connector":"csv" | |
}, | |
"mllib":{ | |
"ntargets":1, | |
"regression":true | |
} | |
}, | |
"model":{ | |
"repository":"/opt/deepdetect/models/covert" | |
} | |
}' | |
Training DD | |
curl -X POST "http://localhost:8080/train" -d '{ | |
"service":"covert", | |
"async":true, | |
"parameters":{ | |
"mllib":{ | |
"gpu":false, | |
"iterations":100, | |
"test_interval":10, | |
"objective":"multi:softprob" | |
}, | |
"input":{ | |
"label_offset":-1, | |
"label":"val2", | |
"id":"ID", | |
"separator":",", | |
"shuffle":true, | |
"test_split":0.1 | |
}, | |
"output":{ | |
"measure":["acc","mcll","f1"] | |
} | |
}, | |
"data":["/opt/deepdetect/models/simplepredict.csv"] | |
}' | |
simplepredict.csv: | |
ID,val1,val2 | |
1,0.1,0.2 | |
2,0.2,0.4 | |
3,0.4,0.8 | |
4,1.6,3.2 | |
5,3.2,6.4 | |
6,6.4,12.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment