class_docstr: Training statistics
  
  Attributes:
      training_loss (List): List of training losses
      training_accuracy (List): List of training accuracies
      value_loss (List): List of value losses
      validation_loss (List): List of validation losses
      validation_accuracy (List): List of validation accuracies
class_docstr_tok: ["Training","statistics","Attributes",":","training_loss","(","List",")",":","List","of","training","losses","training_accuracy","(","List",")",":","List","of","training","accuracies","value_loss","(","List",")",":","List","of","value","losses","validation_loss","(","List",")",":","List","of","validation","losses","validation_accuracy","(","List",")",":","List","of","validation","accuracies"]
docstr: Plot the training statistics using plotly
docstr_tok: ["Plot","the","training","statistics","using","plotly"]
code: def plot(self):
      """Plot the training statistics using plotly"""
      fig = go.Figure()
      if len(self.training_loss) > 0:
          fig.add_trace(
              go.Scatter(y=self.training_loss, name="Training loss")
          )
      if len(self.training_accuracy) > 0:
          fig.add_trace(
              go.Scatter(
                  y=self.training_accuracy, name="Training accuracy"
              )
          )
      if len(self.value_loss) > 0:
          fig.add_trace(
              go.Scatter(y=self.value_loss, name="Value loss")
          )
      if len(self.validation_loss) > 0:
          fig.add_trace(
              go.Scatter(y=self.validation_loss, name="Validation loss")
          )
      if len(self.validation_accuracy) > 0:
          fig.add_trace(
              go.Scatter(
                  y=self.validation_accuracy, name="Validation accuracy"
              )
          )
      fig.update_layout(
          showlegend=True, xaxis_type="log", xaxis_title="steps"
      )
      fig.show()
  
file_path: nebuly/optimization/chatllama/chatllama/rlhf/utils.py
imports: import json
  import os
  from beartype import beartype
  from plotly import graph_objects
label_desc: Use image node_id 2 for calling the TrainingStats obj's underlying member method code with example usage: obj.plot() without return types