Azure ML endpoint - getting predict_proba output

Volodymyr Petryshyn 0 Reputation points
2024-12-07T11:45:14.2233333+00:00

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.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,045 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.