code: 
  
  
  
  """simple docstring"""
  from sklearn.metrics import mean_absolute_error
  
  import datasets
  
  
  _lowerCAmelCase					:str  =      '\\n@article{scikit-learn,\n title={Scikit-learn: Machine Learning in {P}ython},\n author={Pedregosa, F. and Varoquaux, G. and Gramfort, A. and Michel, V.\n         and Thirion, B. and Grisel, O. and Blondel, M. and Prettenhofer, P.\n         and Weiss, R. and Dubourg, V. and Vanderplas, J. and Passos, A. and\n         Cournapeau, D. and Brucher, M. and Perrot, M. and Duchesnay, E.},\n journal={Journal of Machine Learning Research},\n volume={12},\n pages={2825--2830},\n year={2011}\n}\n'
  
  _lowerCAmelCase					:str  =      '\\nMean Absolute Error (MAE) is the mean of the magnitude of difference between the predicted and actual\nvalues.\n'
  
  
  _lowerCAmelCase					:int  =      '\nArgs:\n    predictions: array-like of shape (n_samples,) or (n_samples, n_outputs)\n        Estimated target values.\n    references: array-like of shape (n_samples,) or (n_samples, n_outputs)\n        Ground truth (correct) target values.\n    sample_weight: array-like of shape (n_samples,), default=None\n        Sample weights.\n    multioutput: {"raw_values", "uniform_average"} or array-like of shape (n_outputs,), default="uniform_average"\n        Defines aggregating of multiple output values. Array-like value defines weights used to average errors.\n\n                 "raw_values" : Returns a full set of errors in case of multioutput input.\n\n                 "uniform_average" : Errors of all outputs are averaged with uniform weight.\n\nReturns:\n    mae : mean absolute error.\n        If multioutput is "raw_values", then mean absolute error is returned for each output separately. If multioutput is "uniform_average" or an ndarray of weights, then the weighted average of all output errors is returned.\n        MAE output is non-negative floating point. The best value is 0.0.\nExamples:\n\n    >>> mae_metric = datasets.load_metric("mae")\n    >>> predictions = [2.5, 0.0, 2, 8]\n    >>> references = [3, -0.5, 2, 7]\n    >>> results = mae_metric.compute(predictions=predictions, references=references)\n    >>> print(results)\n    {\'mae\': 0.5}\n\n    If you\'re using multi-dimensional lists, then set the config as follows :\n\n    >>> mae_metric = datasets.load_metric("mae", "multilist")\n    >>> predictions = [[0.5, 1], [-1, 1], [7, -6]]\n    >>> references = [[0, 2], [-1, 2], [8, -5]]\n    >>> results = mae_metric.compute(predictions=predictions, references=references)\n    >>> print(results)\n    {\'mae\': 0.75}\n    >>> results = mae_metric.compute(predictions=predictions, references=references, multioutput=\'raw_values\')\n    >>> print(results)\n    {\'mae\': array([0.5, 1. ])}\n'
  @datasets.utils.file_utils.add_start_docstrings(_DESCRIPTION	,_KWARGS_DESCRIPTION   )
  class 							_UpperCAmelCase							(				datasets.Metric   ):
  
  
  
  
  
       '''simple docstring'''
  
  
  
       def 				__lowerCAmelCase			(      self	)							->      Any:
           return datasets.MetricInfo(
               description=_DESCRIPTION ,			citation=_CITATION ,			inputs_description=_KWARGS_DESCRIPTION ,			features=datasets.Features(self._get_feature_types()	) ,			reference_urls=[
                   '''https://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_absolute_error.html'''
               ] ,			)
  
  
  
  
  
       def 				__lowerCAmelCase			(      self	)							->      Any:
           if self.config_name == "multilist":
               return {
                   "predictions": datasets.Sequence(datasets.Value('''float'''	)	),
                   "references": datasets.Sequence(datasets.Value('''float'''	)	),
               }
           else:
               return {
                   "predictions": datasets.Value('''float'''	),
                   "references": datasets.Value('''float'''	),
               }
  
  
  
  
  
       def 				__lowerCAmelCase			(      self ,			A ,			A ,			A=None ,			A="uniform_average"	)							->      Optional[int]:
           _UpperCAmelCase							:						str       							=					mean_absolute_error(A ,			A ,			sample_weight=A ,			multioutput=A	)
  
           return {"mae": mae_score}
  
  
  
style_context: 
  
  
  
  """simple docstring"""
  import json
  from typing import List, Optional, Tuple
  
  from tokenizers import normalizers
  
  from ...tokenization_utils import AddedToken
  from ...tokenization_utils_fast import PreTrainedTokenizerFast
  from ...utils import logging
  from .tokenization_mpnet import MPNetTokenizer
  
  
  _lowerCAmelCase					:Dict  =      logging.get_logger(__name__)
  
  _lowerCAmelCase					:Tuple  =      {'vocab_file': 'vocab.txt', 'tokenizer_file': 'tokenizer.json'}
  
  _lowerCAmelCase					:Any  =      {
      'vocab_file': {
          'microsoft/mpnet-base': 'https://huggingface.co/microsoft/mpnet-base/resolve/main/vocab.txt',
      },
      'tokenizer_file': {
          'microsoft/mpnet-base': 'https://huggingface.co/microsoft/mpnet-base/resolve/main/tokenizer.json',
      },
  }
  
  _lowerCAmelCase					:str  =      {
      'microsoft/mpnet-base': 512,
  }
  
  _lowerCAmelCase					:Union[str, Any]  =      {
      'microsoft/mpnet-base': {'do_lower_case': True},
  }
  class 							_UpperCAmelCase							(				a   ):
  
  
  
  
  
       '''simple docstring'''
  
  
  
       a__             =VOCAB_FILES_NAMES
       a__             =PRETRAINED_VOCAB_FILES_MAP
       a__             =PRETRAINED_INIT_CONFIGURATION
       a__             =PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
       a__             =MPNetTokenizer
       a__             =['''input_ids''', '''attention_mask''']
  
  
  
  
  
       def __init__(      self ,			A=None ,			A=None ,			A=True ,			A="<s>" ,			A="</s>" ,			A="</s>" ,			A="<s>" ,			A="[UNK]" ,			A="<pad>" ,			A="<mask>" ,			A=True ,			A=None ,			**A ,			)							->      Dict:
           super().__init__(
               A ,			tokenizer_file=A ,			do_lower_case=A ,			bos_token=A ,			eos_token=A ,			sep_token=A ,			cls_token=A ,			unk_token=A ,			pad_token=A ,			mask_token=A ,			tokenize_chinese_chars=A ,			strip_accents=A ,			**A ,			)
  
           _UpperCAmelCase							:						List[str]       							=					json.loads(self.backend_tokenizer.normalizer.__getstate__()	)
           if (
               pre_tok_state.get('''lowercase''' ,			A	) != do_lower_case
               or pre_tok_state.get('''strip_accents''' ,			A	) != strip_accents
           ):
               _UpperCAmelCase							:						Optional[int]       							=					getattr(A ,			pre_tok_state.pop('''type'''	)	)
               _UpperCAmelCase							:						List[Any]       							=					do_lower_case
               _UpperCAmelCase							:						List[Any]       							=					strip_accents
               _UpperCAmelCase							:						Tuple       							=					pre_tok_class(**A	)
  
           _UpperCAmelCase							:						Union[str, Any]       							=					do_lower_case
  
  
  
  
  
       @property
       def 				__lowerCAmelCase			(      self	)							->      str:
           if self._mask_token is None:
               if self.verbose:
                   logger.error('''Using mask_token, but it is not set yet.'''	)
               return None
           return str(self._mask_token	)
  
  
  
  
  
       @mask_token.setter
       def 				__lowerCAmelCase			(      self ,			A	)							->      str:
           _UpperCAmelCase							:						Optional[int]       							=					AddedToken(A ,			lstrip=A ,			rstrip=A	) if isinstance(A ,			A	) else value
           _UpperCAmelCase							:						List[Any]       							=					value
  
  
  
  
  
       def 				__lowerCAmelCase			(      self ,			A ,			A=None	)							->      str:
           _UpperCAmelCase							:						List[str]       							=					[self.bos_token_id] + token_ids_a + [self.eos_token_id]
           if token_ids_a is None:
               return output
  
           return output + [self.eos_token_id] + token_ids_a + [self.eos_token_id]
  
  
  
  
  
       def 				__lowerCAmelCase			(      self ,			A ,			A = None	)							->      List[int]:
           _UpperCAmelCase							:						int       							=					[self.sep_token_id]
           _UpperCAmelCase							:						int       							=					[self.cls_token_id]
  
           if token_ids_a is None:
               return len(cls + token_ids_a + sep	) * [0]
           return len(cls + token_ids_a + sep + sep + token_ids_a + sep	) * [0]
  
  
  
  
  
       def 				__lowerCAmelCase			(      self ,			A ,			A = None	)							->      Tuple[str]:
           _UpperCAmelCase							:						str       							=					self._tokenizer.model.save(A ,			name=A	)
           return tuple(A	)
  
  
  