EventsOperations Class
EventsOperations operations.
- Inheritance
-
builtins.objectEventsOperations
Constructor
EventsOperations(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
| activate |
Report that the specified event was actually displayed to the user and a reward should be expected for it. |
| reward |
Report reward to allocate to the top ranked action for the specified event. |
activate
Report that the specified event was actually displayed to the user and a reward should be expected for it.
activate(event_id, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
None or ClientRawResponse if raw=true
Return type
Exceptions
reward
Report reward to allocate to the top ranked action for the specified event.
reward(event_id, value, custom_headers=None, raw=False, **operation_config)
Parameters
- value
- float
Reward to be assigned to an action. Value should be between -1 and 1 inclusive.
- operation_config
Operation configuration overrides.
Returns
None or ClientRawResponse if raw=true
Return type
Exceptions
Attributes
models
models = <module 'azure.cognitiveservices.personalizer.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.12\\x64\\lib\\site-packages\\azure\\cognitiveservices\\personalizer\\models\\__init__.py'>
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ