class_docstr: `Reducer` that displays a progress bar.
  
  Note this is not XLA-compatible (`tf.function(jit_compile=True)`).
  Numpy and JAX substrates are not supported.
  
  Example usage:
  
  ```
  kernel = ...
  current_state = ...
  num_results = ...
  pbar = tfp.experimental.mcmc.ProgressBarReducer(num_results)
  _, final_state, kernel_results = tfp.experimental.mcmc.sample_fold(
      num_steps=num_results,
      current_state=current_state,
      kernel=kernel,
      reducer=pbar,
  )
  ```
class_docstr_tok: ["`","Reducer","`","that","displays","a","progress","bar",".","Note","this","is","not","XLA-compatible","(","`","tf.function","(","jit_compile=True",")","`",")",".","Numpy","and","JAX","substrates","are","not","supported",".","Example","usage",":","``","`","kernel","=","...","current_state","=","...","num_results","=","...","pbar","=","tfp.experimental.mcmc.ProgressBarReducer","(","num_results",")","_",",","final_state",",","kernel_results","=","tfp.experimental.mcmc.sample_fold","(","num_steps=num_results",",","current_state=current_state",",","kernel=kernel",",","reducer=pbar",",",")","``","`"]
code: def num_results(self):
      return self._parameters["num_results"]
  
file_path: probability/tensorflow_probability/python/experimental/mcmc/progress_bar_reducer.py
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.mcmc import reducer
label_desc: Use image node_id 4 for calling the ProgressBarReducer obj's underlying member method code with example usage: obj.num_results() and returns: self