class_docstr: Vowpal Wabbit Class
docstr: Parse input hyper-parameters to build vw test commands
  
  Args:
      params (dict): key = parameter, value = value (use True if parameter is just a flag)
  
  Returns:
      list[str]: vw command line parameters as list of strings
docstr_tok: ["Parse","input","hyper-parameters","to","build","vw","test","commands","Args",":","params","(","dict",")",":","key","=","parameter",",","value","=","value","(","use","True","if","parameter","is","just","a","flag",")","Returns",":","list","[","str","]",":","vw","command","line","parameters","as","list","of","strings"]
code: def parse_test_params(self, params):
      """Parse input hyper-parameters to build vw test commands
  
      Args:
          params (dict): key = parameter, value = value (use True if parameter is just a flag)
  
      Returns:
          list[str]: vw command line parameters as list of strings
      """
  
      # make a copy of the original hyper parameters
      test_params = params.copy()
  
      # remove options that are handled internally, ot supported or train only parameters
      invalid = [
          "data",
          "f",
          "final_regressor",
          "initial_regressor",
          "test_only",
          "invert_hash",
          "readable_model",
          "b",
          "bit_precision",
          "holdout_off",
          "c",
          "cache",
          "k",
          "kill_cache",
          "l",
          "learning_rate",
          "l1",
          "l2",
          "initial_t",
          "power_t",
          "decay_learning_rate",
          "q",
          "quadratic",
          "cubic",
          "i",
          "interactions",
          "rank",
          "lrq",
          "lrqdropout",
          "oaa",
      ]
      for option in invalid:
          if option in test_params:
              del test_params[option]
  
      test_params.update(
          {
              "d": self.test_file,
              "i": self.model_file,
              "quiet": params.get("quiet", True),
              "p": self.prediction_file,
              "t": True,
          }
      )
      return self.to_vw_cmd(params=test_params)
  
file_path: recommenders/recommenders/models/vowpal_wabbit/vw.py
imports: import os
  from subprocess import run
  from tempfile import TemporaryDirectory
  import pandas
  from recommenders.utils.constants import DEFAULT_USER_COL, DEFAULT_ITEM_COL, DEFAULT_RATING_COL, DEFAULT_TIMESTAMP_COL, DEFAULT_PREDICTION_COL
label_desc: Use image node_id 4 for calling the VW obj's underlying member method code with example usage: obj.parse_test_params(params) and returns: self