From a9687962fd3a9b8f396494e5d1c1d1287ffc5314 Mon Sep 17 00:00:00 2001 From: antoine_galataud Date: Mon, 3 Jun 2024 10:26:38 +0200 Subject: [PATCH] fix doc example --- doc/source/ops/index.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/ops/index.rst b/doc/source/ops/index.rst index f38a472..300317f 100644 --- a/doc/source/ops/index.rst +++ b/doc/source/ops/index.rst @@ -43,7 +43,8 @@ Example with a synthetic, random, dataset. behavior_policy=behavior_policy, estimators=estimators, fail_fast=True, - significance_level=0.1, + ci_method="t-test", + ci_significance_level=0.1, ) results = [ @@ -52,7 +53,7 @@ Example with a synthetic, random, dataset. ] # select the top k policies based on lower bound (confidence interval +-90%) - top_k_results = OffPolicySelection.select_top_k(results, metric="lower_bound") + top_k_results = OffPolicySelection.select_top_k(results, metric="lower_bound", top_k=1) print(top_k_results[0]) This should produce an output similar to: