StatefulTrainer
===============

.. currentmodule:: penzai.toolshed.basic_training

.. autoclass:: StatefulTrainer
  :members:
  :special-members:
  :show-inheritance:


  
  
    
    
    
    
    
    

  

  
  
  
  
  
  
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

  
  .. rubric:: Methods
  .. autosummary::
  
    
    ~StatefulTrainer.__init__
    
    
    
    ~StatefulTrainer.build
    
    
    
    
    
    ~StatefulTrainer.step
    
    
    
    
    
  

  
  .. rubric:: Attributes
  .. autosummary::
  
    ~StatefulTrainer.root_rng
    ~StatefulTrainer.model
    ~StatefulTrainer.state
    ~StatefulTrainer.optimizer_def
    ~StatefulTrainer.loss_fn
    ~StatefulTrainer.step_fn
  

  

  .. rubric:: Inherited Methods
  .. raw:: html

    <details style="margin-bottom: 1.5rem">
      <summary style="font-style:italic">(expand to view inherited methods)</summary>

  .. autosummary::
  
    
    
    ~StatefulTrainer.attributes_dict
    
    
    
    ~StatefulTrainer.from_attributes
    
    
    ~StatefulTrainer.key_for_field
    
    
    ~StatefulTrainer.select
    
    
    
    ~StatefulTrainer.tree_flatten
    
    
    ~StatefulTrainer.tree_flatten_with_keys
    
    
    ~StatefulTrainer.tree_unflatten
    
    
    ~StatefulTrainer.treescope_color
    

  .. raw:: html

    </details>

  