PersonalizerClient Class
Personalizer Service is an Azure Cognitive Service that makes it easy to target content and experiences without complex pre-analysis or cleanup of past data. Given a context and featurized content, the Personalizer Service returns your content in a ranked list. As rewards are sent in response to the ranked list, the reinforcement learning algorithm will improve the model and improve performance of future rank calls.
Constructor
PersonalizerClient(endpoint, credentials)
Parameters
| Name | Description |
|---|---|
|
endpoint
Required
|
Supported Cognitive Services endpoint. |
|
credentials
Required
|
Subscription credentials which uniquely identify client subscription. |
Variables
| Name | Description |
|---|---|
|
config
|
Configuration for client. |
|
events
|
Events operations |
Methods
| close |
Close the client if keep_alive is True. |
| rank |
A Personalizer rank request. |
close
Close the client if keep_alive is True.
close() -> None
rank
A Personalizer rank request.
rank(rank_request, custom_headers=None, raw=False, **operation_config)
Parameters
| Name | Description |
|---|---|
|
rank_request
Required
|
A Personalizer request. |
|
custom_headers
|
headers that will be added to the request Default value: None
|
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
|
operation_config
Required
|
Operation configuration overrides. |
Returns
| Type | Description |
|---|---|
|
<xref:msrest.pipeline.ClientRawResponse>
|
RankResponse or ClientRawResponse if raw=true |
Exceptions
| Type | Description |
|---|---|