app/package/model_pkg/conversion_rate_model/v3/model.py
def _model_definition(self, 
                          config=CONFIG):
        """Function to define and compile the model
            
           Args:
                config: dict with model hyperparameters
           
           Returns:
                model object
        """
        if self.model is None:
            if config is None:
                self.model = xgboost.XGBRegressor(objective='reg:squarederror')
            else:
                self.model = xgboost.XGBRegressor(**config, 
                                                  objective='reg:squarederror')
Function to define and compile the model
            
           Args:
                config: dict with model hyperparameters
           
           Returns:
                model object
        
Function to define and compile the model
Function to define and compile the model
def _model_definition(self, 
                          config=CONFIG):
        if self.model is None:
            if config is None:
                self.model = xgboost.XGBRegressor(objective='reg:squarederror')
            else:
                self.model = xgboost.XGBRegressor(**config, 
                                                  objective='reg:squarederror')
def _model_definition ( self , config = CONFIG ) : if self . model is None : if config is None : self . model = xgboost . XGBRegressor ( objective = 'reg:squarederror' ) else : self . model = xgboost . XGBRegressor ( ** config , objective = 'reg:squarederror' )
Function to define and compile the model
Function to define and compile the model
"""Function to define and compile the model
            
           Args:
                config: dict with model hyperparameters
           
           Returns:
                model object
        """
None
self
config
dict with model hyperparameters
dict with model hyperparameters