Skip to content

Commit 1f51e1e

Browse files
Merge pull request #78 from dataiku/chore/dss80-rli-increase-mc-steps-max-to-1000
Increase MC steps max from 400 to 1000
2 parents 74a3abf + cb64e97 commit 1f51e1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/apinode_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def predict_record(self, endpoint_id, features, forced_generation=None, dispatch
2929
: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.
3030
:param explanation_method: Optional, method to compute explanations. Valid values are 'SHAPLEY' or 'ICE'. If None, will use the value configured in the endpoint.
3131
: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 400).
32+
:param n_explanations_mc_steps: Optional, precision parameter for SHAPLEY method, higher means more precise but slower (between 25 and 1000).
3333
If None, will use the value configured in the endpoint.
3434
3535
:return: a Python dict of the API answer. The answer contains a "result" key (itself a dict)
@@ -65,7 +65,7 @@ def predict_records(self, endpoint_id, records, forced_generation=None, dispatch
6565
: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.
6666
:param explanation_method: Optional, method to compute explanations. Valid values are 'SHAPLEY' or 'ICE'. If None, will use the value configured in the endpoint.
6767
: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 400).
68+
:param n_explanations_mc_steps: Optional, precision parameter for SHAPLEY method, higher means more precise but slower (between 25 and 1000).
6969
If None, will use the value configured in the endpoint.
7070
7171
:return: a Python dict of the API answer. The answer contains a "results" key (which is an array of result objects)

0 commit comments

Comments
 (0)