PredictionOperations Class
PredictionOperations operations.
You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.
- Inheritance
-
builtins.objectPredictionOperations
Constructor
PredictionOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Methods
get_slot_prediction |
Gets the predictions for an application slot. |
get_version_prediction |
Gets the predictions for an application version. |
get_slot_prediction
Gets the predictions for an application slot.
get_slot_prediction(app_id, slot_name, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)
Parameters
- verbose
- bool
Indicates whether to get extra metadata for the entities predictions or not.
- show_all_intents
- bool
Indicates whether to return all the intents in the response or just the top intent.
- operation_config
Operation configuration overrides.
Returns
PredictionResponse or ClientRawResponse if raw=true
Return type
Exceptions
get_version_prediction
Gets the predictions for an application version.
get_version_prediction(app_id, version_id, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)
Parameters
- verbose
- bool
Indicates whether to get extra metadata for the entities predictions or not.
- show_all_intents
- bool
Indicates whether to return all the intents in the response or just the top intent.
- operation_config
Operation configuration overrides.
Returns
PredictionResponse or ClientRawResponse if raw=true
Return type
Exceptions
Attributes
models
models = <module 'azure.cognitiveservices.language.luis.runtime.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\runtime\\models\\__init__.py'>
Feedback
Submit and view feedback for