class_docstr: Linear Bandit Policy to be used by LinUCB, LinTS and possibly others.
class_docstr_tok: ["Linear","Bandit","Policy","to","be","used","by","LinUCB",",","LinTS","and","possibly","others","."]
code: def _check_input_variables(self):
      if len(self._cov_matrix) != len(self._data_vector):
          raise ValueError(
              "The size of list cov_matrix must match the size of "
              "list data_vector. Got {} for cov_matrix and {} "
              "for data_vector".format(
                  len(self._cov_matrix), len((self._data_vector))
              )
          )
      if len(self._num_samples) != len(self._cov_matrix):
          raise ValueError(
              "The size of num_samples must match the size of "
              "list cov_matrix. Got {} for num_samples and {} "
              "for cov_matrix".format(
                  len(self._num_samples), len((self._cov_matrix))
              )
          )
  
      if self._accepts_per_arm_features:
          if len(self._cov_matrix) != 1:
              raise ValueError(
                  "If the policy accepts per-arm features, the length of `cov_matrix`"
                  " list must be 1. Got {} instead.".format(
                      len(self._cov_matrix)
                  )
              )
      else:
          if self._num_actions != len(self._cov_matrix):
              raise ValueError(
                  "The number of elements in `cov_matrix` ({}) must match "
                  "the number of actions derived from `action_spec` ({}).".format(
                      len(self._cov_matrix), self._num_actions
                  )
              )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import enum
  from typing import Optional, Sequence, Text, Tuple
  import tensorflow
  import tensorflow_probability
  from tf_agents.bandits.policies import constraints
  from tf_agents.bandits.policies import linalg
  from tf_agents.bandits.specs import utils
  from tf_agents.policies import tf_policy
  from tf_agents.policies import utils
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import policy_step
  from tf_agents.typing import types
label_desc: Use image node_id 6 for calling the LinearBanditPolicy obj's underlying member method code with example usage: obj._check_input_variables() without return types