You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param forced_generation: See documentation about multi-version prediction
26
27
:param dispatch_key: See documentation about multi-version prediction
27
28
:param context: Optional, Python dictionary of additional context information. The context information is logged, but not directly used.
29
+
:param with_explanations: Optional, whether individual explanations should be computed for each record. The prediction endpoint must be compatible. If None, will use the value configured in the endpoint.
30
+
:param explanation_method: Optional, method to compute explanations. Valid values are 'SHAPLEY' or 'ICE'. If None, will use the value configured in the endpoint.
31
+
:param n_explanations: Optional, number of explanations to output per prediction. If None, will use the value configured in the endpoint.
32
+
:param n_explanations_mc_steps: Optional, precision parameter for SHAPLEY method, higher means more precise but slower (between 25 and 1000).
33
+
If None, will use the value configured in the endpoint.
28
34
29
35
:return: a Python dict of the API answer. The answer contains a "result" key (itself a dict)
Predicts a batch of records on a DSS API node endpoint (standard or custom prediction)
46
60
47
61
:param str endpoint_id: Identifier of the endpoint to query
48
62
:param records: Python list of records. Each record must be a Python dict. Each record must contain a "features" dict (see predict_record) and optionally a "context" dict.
49
63
:param forced_generation: See documentation about multi-version prediction
50
64
:param dispatch_key: See documentation about multi-version prediction
65
+
:param with_explanations: Optional, whether individual explanations should be computed for each record. The prediction endpoint must be compatible. If None, will use the value configured in the endpoint.
66
+
:param explanation_method: Optional, method to compute explanations. Valid values are 'SHAPLEY' or 'ICE'. If None, will use the value configured in the endpoint.
67
+
:param n_explanations: Optional, number of explanations to output per prediction. If None, will use the value configured in the endpoint.
68
+
:param n_explanations_mc_steps: Optional, precision parameter for SHAPLEY method, higher means more precise but slower (between 25 and 1000).
69
+
If None, will use the value configured in the endpoint.
51
70
52
71
:return: a Python dict of the API answer. The answer contains a "results" key (which is an array of result objects)
0 commit comments