How to use predict_proba with AzureML batch endpoint within invoke method, whilst using URI folder URL as the data?

I have a AutoML generated binary classification model deployed to a batch endpoint. I can successfully invoke the model using the below code to output a file that contains a binary prediction (1|0).

# Input being ADLS
input = Input(
    type=AssetTypes.URI_FOLDER, 
    path="https://mydatalake.blob.core.windows.net/my_container/folder_with_data"
)

# Invoke the end point
job = ml_client.batch_endpoints.invoke(
    endpoint_name=endpoint.name,
    inputs={
        "heart_dataset": input,
    }
)

I am trying to incorporate the global parameter predict_proba so that the file returned includes the predicted probability of either or both classes, however I have been unsuccessful.
Many of the examples (example) I am trying to follow are similar but their data is specified in the code (i.e. input is a dataframe manually populated in the code rather than a URL to a folder or file).

For example, the below returns a serialisation error:

# Input being ADLS
input = Input(
    type=AssetTypes.URI_FOLDER, 
    path="https://mydatalake.blob.core.windows.net/my_container/folder_with_data"
)

# Invoke endpoint
job = ml_client.batch_endpoints.invoke(
    endpoint_name="heart-test",
    inputs={
        "GlobalParameters": {
            "method": "predict_proba"
        },
        "inputs": {
            "heart_dataset": input
        }
    }
)

Error:

SerializationError: (“Attribute None in object dict cannot be serialized.n{‘method’: ‘predict_proba’}, AttributeError: ‘dict’ object has no attribute ‘_attribute_map'”, AttributeError(“‘dict’ object has no attribute ‘_attribute_map'”))

I have tried various placements of the GlobalParameters method predict_proba, asking LLMs and googling for solutions, trying to adapt them to my use case.
This includes variations on the above not working code, as well as leveraging the schema argument within the invoke method (this worked but resulted in binary prediction response).

For reference:

output_schema = {
    "output_data": {
        "definitions": {
            "scored_data": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        # Replace with actual class labels from your model
                        "Class_0": {"type": "number"},
                        "Class_1": {"type": "number"},
                        # Add additional classes as needed
                    }
                }
            }
        }
    }
}

# Invoke the endpoint with the output schema
job = ml_client.batch_endpoints.invoke(
    endpoint_name=endpoint_name,
    inputs={"heart_dataset": input},
    schema=output_schema
    )

As this is an AutoML generated model deployed to a batch end point, the scoring script is automatically generated, so I am hoping to avoid editing it and achieve the predicted probability being returned using the input to the endpoint invocation only.

Hopefully that is all required info, happy to add more if required. Thanks in advance.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật