U
    ‘Ç-eÐ
  ã                   @   s  d dl Zd dlZd dlmZmZ dd„ Zdd„ Zej 	ddd	d
ddddddeddfdeddfdeddfdeddfdeddfdeddfdeddfdeddfg¡dd„ ƒZ
ej 	de ddd¡ddfe ddd¡ ddfe d dd¡dd fdd!ddd"d#gd"d$fg¡d%d&„ ƒZdS )'é    N)Ú_interval_max_min_ratioÚ_validate_score_namec                   C   s   d S ©N© r   r   r   úb/var/www/html/Darija-Ai-Train/env/lib/python3.8/site-packages/sklearn/utils/tests/test_plotting.pyÚmetric   s    r   c                   C   s   d S r   r   r   r   r   r   Ú
neg_metric   s    r   z6score_name, scoring, negate_score, expected_score_name)ÚaccuracyNFr	   )Nr	   FZAccuracy)Nr	   TzNegative accuracy)NÚneg_mean_absolute_errorFzNegative mean absolute error)Nr
   TzMean absolute error)ÚMAEr
   Tr   )NNFZScore)NNTzNegative scorezSome metricFTZMetriczNegative metricc                 C   s   t | ||ƒ|kst‚dS )z*Check that we return the right score name.N)r   ÚAssertionError)Z
score_nameZscoringZnegate_scoreZexpected_score_namer   r   r   Útest_validate_score_name   s    ÿr   zdata, lower_bound, upper_boundgš™™™™™¹?é   é   é   é
   é   é   gÍÌÌÌÌÌì?gš™™™™™ñ?é   é   é2   é(   c                 C   s"   |t | ƒ  k r|k sn t‚d S r   )r   r   )ÚdataÚlower_boundÚupper_boundr   r   r   Útest_inverval_max_min_ratio/   s    r   )ÚnumpyÚnpZpytestZsklearn.utils._plottingr   r   r   r   ÚmarkZparametrizer   Z	geomspaceZlinspacer   r   r   r   r   Ú<module>   sD   







ðþ
öþ