class_docstr: Vowpal Wabbit Class
docstr: Initialize model parameters
  
  Args:
      col_user (str): user column name
      col_item (str): item column name
      col_rating (str): rating column name
      col_timestamp (str): timestamp column name
      col_prediction (str): prediction column name
docstr_tok: ["Initialize","model","parameters","Args",":","col_user","(","str",")",":","user","column","name","col_item","(","str",")",":","item","column","name","col_rating","(","str",")",":","rating","column","name","col_timestamp","(","str",")",":","timestamp","column","name","col_prediction","(","str",")",":","prediction","column","name"]
code: def __init__(
      self,
      col_user=DEFAULT_USER_COL,
      col_item=DEFAULT_ITEM_COL,
      col_rating=DEFAULT_RATING_COL,
      col_timestamp=DEFAULT_TIMESTAMP_COL,
      col_prediction=DEFAULT_PREDICTION_COL,
      **kwargs,
  ):
      """Initialize model parameters
  
      Args:
          col_user (str): user column name
          col_item (str): item column name
          col_rating (str): rating column name
          col_timestamp (str): timestamp column name
          col_prediction (str): prediction column name
      """
  
      # create temporary files
      self.tempdir = TemporaryDirectory()
      self.train_file = os.path.join(self.tempdir.name, "train.dat")
      self.test_file = os.path.join(self.tempdir.name, "test.dat")
      self.model_file = os.path.join(self.tempdir.name, "vw.model")
      self.prediction_file = os.path.join(
          self.tempdir.name, "prediction.dat"
      )
  
      # set DataFrame columns
      self.col_user = col_user
      self.col_item = col_item
      self.col_rating = col_rating
      self.col_timestamp = col_timestamp
      self.col_prediction = col_prediction
  
      self.logistic = "logistic" in kwargs.values()
      self.train_cmd = self.parse_train_params(params=kwargs)
      self.test_cmd = self.parse_test_params(params=kwargs)
  
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 1 to create a new VW object  with example: obj = VW(col_user, col_item, col_rating, col_timestamp, col_prediction)