Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model.predict_proba is not working in scoring script for classification #1950

Open
imhemantjangra4 opened this issue Nov 21, 2023 · 0 comments

Comments

@imhemantjangra4
Copy link

This is run function. But My output of test data is class only not probabilities.
@input_schema('data', PandasParameterType(input_sample))
@output_schema(NumpyParameterType(output_sample))
def run(data):
result=model.predict_proba(data)
return result.tolist()

My deployement Function for reference
deployment = ManagedOnlineDeployment(
name=deployment_name,
endpoint_name=online_endpoint_name,
model=registered_model.id,
instance_type="Standard_F4s_v2",
instance_count=1,
code_configuration=CodeConfiguration(
code="./artifact_downloads/outputs",
scoring_script="scoring_script.py",
),
liveness_probe=ProbeSettings(
failure_threshold=30,
success_threshold=1,
timeout=2,
period=10,
initial_delay=2000,
),
readiness_probe=ProbeSettings(
failure_threshold=10,
success_threshold=1,
timeout=10,
period=10,
initial_delay=2000,
),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant