imizedPolicy &lt;- R6::R6Class(     # &lt;-- not directly accessible to contextual
  portable = FALSE,
  class = FALSE,
  inherit = Policy,
  public = list(
    alpha = NULL,
    class_name = "LinUCBDisjointOptimizedPolicy",  # &lt;-- so Bandits and Policies need class_name too
    initialize = function(alpha = 1.0) {
      super$initialize()
      self$alpha &lt;- alpha
    },
    ...</pre></body></html></div>
</div>
<div id="what-is-the-use-of-get_arm_context-and-get_full_context" class="section level2">
