Azure ML endpoint - getting predict_proba output
Volodymyr Petryshyn
0
Reputation points
Hi,
I've created AutoML job to do binary classification and registered some models to create endpoints,
the endpoints are not producing predic_probabilities outputs event when I'm passing to json
"GlobalParameters": {
"method": "predict_proba"
}.
When I'm testing these models I got probabilities in predictions.csv output,
I've also checked generated python code to make sure that the scoring file has GlobalParameters section and checked that my algo supports predict_proba
def run(Inputs, GlobalParameters={"method": "predict"}):
data = Inputs['data']
if GlobalParameters.get("method", None) == "predict_proba":
result = model.predict_proba(data)
elif GlobalParameters.get("method", None) == "predict":
result = model.predict(data)
Please suggest what else I can do to get probabilities instead of True/False outputs.
Sign in to answer