class_docstr: For details, visit https://arxiv.org/pdf/1612.01205.pdf
class_docstr_tok: ["For","details",",","visit","https",":","\/\/arxiv.org\/pdf\/1612.01205.pdf"]
code: def _prepare_data(self, edp: EvaluationDataPage) -> EstimationData:
      ed = EstimationData(
          contexts_actions_train=None,
          policy_indicators_train=None,
          weights_train=None,
          contexts_actions_valid=None,
          policy_indicators_valid=None,
          weights_valid=None,
          contexts_actions_eval=None,
          contexts_train=None,
          actions_logged_train=None,
          contexts_valid=None,
          actions_logged_valid=None,
          contexts_eval=edp.contexts,
          actions_logged_eval=None,
          model_propensities_eval=edp.model_propensities,
          model_rewards_eval=edp.model_rewards,
          action_mask_eval=edp.action_mask,
          logged_rewards_eval=edp.logged_rewards,
          model_rewards_for_logged_action_eval=edp.model_rewards_for_logged_action,
          logged_propensities_eval=edp.logged_propensities,
      )
      return ed
  
imports: import logging
  from dataclasses import dataclass
  from typing import Dict, NamedTuple, Optional, Tuple, Union
  import numpy
  import torch
  from reagent.evaluation.cpe import bootstrapped_std_error_of_mean, CpeEstimate
  from reagent.evaluation.evaluation_data_page import EvaluationDataPage
  from torch import Tensor
label_desc: Use image node_id 2 for calling the DoublyRobustEstimator obj's underlying member method code with example usage: obj._prepare_data(edp) and returns: ed