Last active
August 29, 2015 14:19
-
-
Save juliensimon/17f9cc88a3c0f70725b6 to your computer and use it in GitHub Desktop.
aws ml predict
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
// Paris -> us-east-1 | |
% time aws machinelearning predict --ml-model-id ml-noV4tkTZgnO --record '{"lastname":"Simon", "firstname":"Julien", "gender":"M", "state":"Texas","age":"44", "month":"4", "day":"106", "hour":"10", "minutes":"26", "items":"5" }' --predict-endpoint https://realtime.machinelearning.us-east-1.amazonaws.com | |
{ | |
"Prediction": { | |
"predictedValue": 752.190185546875, | |
"details": { | |
"PredictiveModelType": "REGRESSION", | |
"Algorithm": "SGD" | |
} | |
} | |
} | |
aws machinelearning predict --ml-model-id ml-noV4tkTZgnO --record | |
0,22s user 0,06s system 40% cpu 0,694 total | |
// us-east-1 -> us-east-1 | |
[ec2-user@ip-172-30-1-166 aws-cli-develop]$ time aws machinelearning predict --ml-model-id ml-noV4tkTZgnO --record '{"lastname":"Simon", "firstname":"Julien", "gender":"M", "state":"Texas","age":"44", "month":"4", "day":"106", "hour":"10", "minutes":"26", "items":"5" }' --predict-endpoint https://realtime.machinelearning.us-east-1.amazonaws.com | |
{ | |
"Prediction": { | |
"predictedValue": 752.190185546875, | |
"details": { | |
"PredictiveModelType": "REGRESSION", | |
"Algorithm": "SGD" | |
} | |
} | |
} | |
real 0m0.312s | |
user 0m0.240s | |
sys 0m0.036s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment