class_docstr: Base class for structural time series models.
  
  A StructuralTimeSeries object represents a declarative specification of a
  structural time series model, including priors on model parameters.
  It implements a joint probability model
    `p(params, y) = p(params) p(y | params)`,
  where `params` denotes a list of real-valued parameters specified by the child
  class, and `p(y | params)` is a linear Gaussian state space model with
  structure determined by the child class.
class_docstr_tok: ["Base","class","for","structural","time","series","models",".","A","StructuralTimeSeries","object","represents","a","declarative","specification","of","a","structural","time","series","model",",","including","priors","on","model","parameters",".","It","implements","a","joint","probability","model","`","p","(","params",",","y",")","=","p","(","params",")","p","(","y","|","params",")","`",",","where","`","params","`","denotes","a","list","of","real-valued","parameters","specified","by","the","child","class",",","and","`","p","(","y","|","params",")","`","is","a","linear","Gaussian","state","space","model","with","structure","determined","by","the","child","class","."]
docstr: Static batch shape of models represented by this component.
  
  Returns:
    batch_shape: A `tf.TensorShape` giving the broadcast batch shape of
      all model parameters. This should match the batch shape of
      derived state space models, i.e.,
      `self.make_state_space_model(...).batch_shape`. It may be partially
      defined or unknown.
docstr_tok: ["Static","batch","shape","of","models","represented","by","this","component",".","Returns",":","batch_shape",":","A","`","tf.TensorShape","`","giving","the","broadcast","batch","shape","of","all","model","parameters",".","This","should","match","the","batch","shape","of","derived","state","space","models",",","i.e.",",","`","self.make_state_space_model","(","...",")",".batch_shape","`",".","It","may","be","partially","defined","or","unknown","."]
code: def batch_shape(self):
      """Static batch shape of models represented by this component.
  
      Returns:
        batch_shape: A `tf.TensorShape` giving the broadcast batch shape of
          all model parameters. This should match the batch shape of
          derived state space models, i.e.,
          `self.make_state_space_model(...).batch_shape`. It may be partially
          defined or unknown.
      """
      batch_shape = tf.TensorShape([])
      for param in self.parameters:
          batch_shape = tf.broadcast_static_shape(
              batch_shape, param.prior.batch_shape
          )
      return batch_shape
  
imports: import collections
  import types
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import joint_distribution_auto_batched
  from tensorflow_probability.python.distributions import sample
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.sts.internal import util
  from tensorflow.python.util import deprecation
label_desc: Use image node_id 7 for calling the StructuralTimeSeries obj's underlying member method code with example usage: obj.batch_shape() and returns: batch_shape