class_docstr: Object returned by the HB_master.run function
  
  This class offers a simple API to access the information from
  a Hyperband run.
class_docstr_tok: ["Object","returned","by","the","HB_master.run","function","This","class","offers","a","simple","API","to","access","the","information","from","a","Hyperband","run","."]
code: def get_pandas_dataframe(
      self, budgets=None, loss_fn=lambda r: r.loss
  ):
      import numpy as np
      import pandas as pd
  
      id2conf = self.get_id2config_mapping()
  
      df_x = pd.DataFrame()
      df_y = pd.DataFrame()
  
      if budgets is None:
          budgets = self.HB_config["budgets"]
  
      all_runs = self.get_all_runs(only_largest_budget=False)
      all_runs = list(filter(lambda r: r.budget in budgets, all_runs))
  
      all_configs = []
      all_losses = []
  
      for r in all_runs:
          if r.loss is None:
              continue
          config = id2conf[r.config_id]["config"]
          if len(budgets) > 1:
              config["budget"] = r.budget
  
          all_configs.append(config)
          all_losses.append({"loss": r.loss})
  
          # df_x = df_x.append(config, ignore_index=True)
          # df_y = df_y.append({'loss': r.loss}, ignore_index=True)
  
      df_X = pd.DataFrame(all_configs)
      df_y = pd.DataFrame(all_losses)
  
      return (df_X, df_y)
  
imports: import copy
  import os
  import json
  from hpbandster.core.base_iteration import Datum
label_desc: Use image node_id 12 for calling the Result obj's underlying member method code with example usage: obj.get_pandas_dataframe(budgets, loss_fn) and returns: df_X,  df_y