oulliBandit</span>$<span class='fu'>new</span>(<span class='kw'>weights</span> <span class='kw'>=</span> <span class='no'>context_weights</span>)

<span class='co'># For the generation of random data choose a random policy,</span>
<span class='co'># otherwise rejection sampling will produce biased results.</span>

<span class='no'>policy</span>      <span class='kw'>&lt;-</span> <span class='no'>RandomPolicy</span>$<span class='fu'>new</span>()

<span class='no'>agent</span>       <span class='kw'>&lt;-</sp