original_docstring: Builds a voting regressor wit the models given and trains it with the data given.
  
      Parameters
      ----------
      X_train
      y_train
      polyr
      knnr
      dtr
  
      Returns
      -------
      Returns a voting regressor trained.
      
docstring: Builds a voting regressor wit the models given and trains it with the data given.
  Parameters
  
  
  
  Returns
  
  Returns a voting regressor trained.
docstring_tokens: Builds a voting regressor wit the models given and trains it with the data given . Parameters Returns Returns a voting regressor trained .
code: def voting_regresor(X_train: pd.DataFrame, y_train: pd.DataFrame, polyr, knnr, dtr):
      """Builds a voting regressor wit the models given and trains it with the data given.
  
      Parameters
      ----------
      X_train
      y_train
      polyr
      knnr
      dtr
  
      Returns
      -------
      Returns a voting regressor trained.
      """
      voting_regressor_ba = VotingRegressor(
          estimators=[('poly', polyr),
                      ('knn', knnr),
                      ('dt', dtr)],
          weights=get_weights()
      ).fit(X_train, np.log(y_train))
      print('-' * 30, 'VOTING REGRESSOR TRAINED!!', '-' * 30)
      return voting_regressor_ba
code_tokens: def voting_regresor ( X_train : pd . DataFrame , y_train : pd . DataFrame , polyr , knnr , dtr ) : voting_regressor_ba = VotingRegressor ( estimators = [ ( 'poly' , polyr ) , ( 'knn' , knnr ) , ( 'dt' , dtr ) ] , weights = get_weights ( ) ) . fit ( X_train , np . log ( y_train ) ) print ( '-' * 30 , 'VOTING REGRESSOR TRAINED!!' , '-' * 30 ) return voting_regressor_ba
short_docstring: Builds a voting regressor wit the models given and trains it with the data given.
short_docstring_tokens: Builds a voting regressor wit the models given and trains it with the data given .
comment: """Builds a voting regressor wit the models given and trains it with the data given.
  
      Parameters
      ----------
      X_train
      y_train
      polyr
      knnr
      dtr
  
      Returns
      -------
      Returns a voting regressor trained.
      """