parameters: (self, data)
docstring: Validate Booster and data's feature_names are identical.
          Set feature_names and feature_types from DMatrix
docstring_summary: Validate Booster and data's feature_names are identical.
          Set feature_names and feature_types from DMatrix
docstring_tokens: Validate Booster and data s feature_names are identical . Set feature_names and feature_types from DMatrix
function: def _validate_features(self, data):
          """
          Validate Booster and data's feature_names are identical.
          Set feature_names and feature_types from DMatrix
          """
          if self.feature_names is None:
              self.feature_names = data.feature_names
              self.feature_types = data.feature_types
          else:
              # Booster can't accept data with different feature names
              if self.feature_names != data.feature_names:
                  msg = 'feature_names mismatch: {0} {1}'
                  raise ValueError(msg.format(self.feature_names,
                                              data.feature_names))
function_tokens: def _validate_features ( self , data ) : if self . feature_names is None : self . feature_names = data . feature_names self . feature_types = data . feature_types else : # Booster can't accept data with different feature names if self . feature_names != data . feature_names : msg = 'feature_names mismatch: {0} {1}' raise ValueError ( msg . format ( self . feature_names , data . feature_names ) )