Ë
    8Ò^jrx  ã            
       ó.  — d Z ddlZddlZddlZddlZddlZddlmZ ddl	m
Z
 ddlmZ ddlmZ ddlmZmZmZmZ ddlmZ dd	lmZ dd
lmZmZmZmZ d„ Z ej<                  g d¢«      j>                  Z  ej<                  g d¢«      j>                  Z! ee «      jE                  «       Z# edd¬«      Z$ ed¬«      e$ edd¬«       edd«       edd¬«      z   edd«       edd¬«      z   edd«      z    edd«       edd¬«      z   edd«      z   gZ%e%D � cg c]
  } | e$k7  sŒ	| ‘Œ c} Z&ejN                  jQ                  de%«      d„ «       Z)d„ Z*ejN                  jQ                  de&«      d„ «       Z+ejN                  jQ                  de%«      d„ «       Z,ejN                  jQ                  de%«      d„ «       Z-ejN                  jQ                  de&«      d„ «       Z.ejN                  jQ                  de&«      d„ «       Z/ejN                  ja                  e1d¬ «      ejN                  jQ                  de&«      ejN                  jQ                  d! ejd                  d"d#d$«      «      d%„ «       «       «       Z3ejN                  jQ                  de%«      d&„ «       Z4ejN                  jQ                  de%«      d'„ «       Z5ejN                  jQ                  d(dd)g«      ejN                  jQ                  dd e«       g«      d*„ «       «       Z6ejN                  jQ                  de%«      ejN                  jQ                  d+e# ejn                  e jp                  d   ejr                  ¬,«      g«      d-„ «       «       Z:d.„ Z;d/„ Z<ejN                  jQ                  de%«      d0„ «       Z=d1„ Z>d2„ Z?ejN                  jQ                  de&«      d3„ «       Z@d4„ ZAejN                  jQ                  de%«      d5„ «       ZBd6„ ZCd7„ ZDd8„ ZEejN                  jQ                  de%«      d9„ «       ZFd:„ ZGejN                  jQ                  d;d< ej�                  d=«      ieId>f eej”                   ej”                  f¬?«      d@dAœeIdBfg«      dC„ «       ZKdD„ ZLdE„ ZMejN                  jQ                  dFdGdHg«      ejN                  jQ                  dIg dJ¢«      dK„ «       «       ZNejN                  jQ                  dFdGdHg«      ejN                  jQ                  dIg dJ¢«      dL„ «       «       ZOejN                  jQ                  dIg dM¢«      ejN                  jQ                  dNdOdPg«      dQ„ «       «       ZPejN                  jQ                  dIg dM¢«      dR„ «       ZQdS„ ZR G dT„ dUe«      ZSdV„ ZTejN                  jQ                  de%«      dW„ «       ZUyc c} w )Xz'Testing for Gaussian process regressioné    N)Úapprox_fprime)Úclone)ÚConvergenceWarning)ÚGaussianProcessRegressor)ÚRBFÚ
DotProductÚExpSineSquaredÚWhiteKernel)ÚConstantKernel)ÚMiniSeqKernel)Úassert_allcloseÚassert_almost_equalÚassert_array_almost_equalÚassert_array_lessc                 ó2   — | t        j                  | «      z  S )N)ÚnpÚsin)Úxs    úr/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/sklearn/gaussian_process/tests/test_gpr.pyÚfr   #   s   € ØŒr�v‰v�a‹y‰=Ðó    )ç      ð?g      @g      @g      @g      @g       @)ç       @g      @g      @g      @g      @r   Úfixed©Úlength_scaleÚlength_scale_bounds©r   )çü©ñÒMbP?ç     @�@©ç{®Gáz„?ç      Y@çñhãˆµøä>)r$   r#   çš™™™™™¹?Úkernelc                 ó.  — t         j                  dk  rt        j                  d«       t	        | ¬«      j                  t        t        «      }|j                  t        d¬«      \  }}t        |t        «       t        t        j                  |«      d«       y )Nì        ú#This test may fail on 32 bit Python©r&   T©Ú
return_covç        )ÚsysÚmaxsizeÚpytestÚxfailr   ÚfitÚXÚyÚpredictr   r   Údiag)r&   ÚgprÚy_predÚy_covs       r   Útest_gpr_interpolationr:   9   sf   € ä
‡{�{�eÒÜ�‰Ð:Ô;ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€CØ—K‘K¤¨d�KÓ3�M€FˆEä˜¤Ô"ÜœŸ™ ›¨Õ,r   c            	      ó°  — t        d¬«      } g d¢}t        j                  g d¢«      }t        | ¬«      j	                  ||«      }|j                  |d¬«      \  }}t         | |d¬«      d	   j                  «       d	t        j                  t        |«      «      z
  j                  «       «       t        ||«       t        t        j                  |«      d
«       y )Nr   )Úbaseline_similarity_bounds)ÚAÚBÚC)é   é   é   r*   Tr+   ©Úeval_gradientr@   r-   )r   r   Úarrayr   r2   r5   r   ÚravelÚeyeÚlenr6   )r&   r3   r4   r7   r8   r9   s         r   Ú!test_gpr_interpolation_structuredrI   F   s¦   € ä°gÔ>€FÚ€AÜ
�‰’Ó€AÜ
"¨&Ô
1×
5Ñ
5°a¸Ó
;€CØ—K‘K ¨d�KÓ3�M€FˆEäÙˆq Ô% aÑ(×.Ñ.Ó0°1´r·v±v¼cÀ!»f³~Ñ3E×2LÑ2LÓ2Nôô ˜ Ô"ÜœŸ™ ›¨Õ,r   c                 ó"  — t         j                  dk  rt        j                  d«       t	        | ¬«      j                  t        t        «      }|j                  |j                  j                  «      |j                  | j                  «      kD  sJ ‚y )Nr(   r)   r*   )r.   r/   r0   r1   r   r2   r3   r4   Úlog_marginal_likelihoodÚkernel_Útheta©r&   r7   s     r   Útest_lml_improvingrO   U   so   € ä
‡{�{�eÒÜ�‰Ð:Ô;ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€CØ×&Ñ& s§{¡{×'8Ñ'8Ó9¸C×<WÑ<WØ�‰ó=ò ð ñ r   c                 óâ   — t        | ¬«      j                  t        t        «      }|j	                  |j
                  j                  «      t        j                  |j	                  «       «      k(  sJ ‚y )Nr*   )	r   r2   r3   r4   rK   rL   rM   r0   ÚapproxrN   s     r   Útest_lml_precomputedrR   a   sY   € ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€CØ×&Ñ& s§{¡{×'8Ñ'8Ó9¼V¿]¹]Ø×#Ñ#Ó%ó>ò ð ñ r   c                 ó:  — t        | ¬«      j                  t        t        «      }t	        j
                  |j                  j                  j                  t        j                  ¬«      }|j                  |d¬«       t        |j                  j                  |d«       y )Nr*   ©ÚdtypeF)Úclone_kernelé   )r   r2   r3   r4   r   ÚonesrL   rM   ÚshapeÚfloat64rK   r   )r&   r7   Úinput_thetas      r   Útest_lml_without_cloning_kernelr\   j   sh   € ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€CÜ—'‘'˜#Ÿ+™+×+Ñ+×1Ñ1¼¿¹ÔD€Kà×Ñ ¸%ÐÔ@Ü˜Ÿ™×)Ñ)¨;¸Õ:r   c                 óÌ  — t        | ¬«      j                  t        t        «      }|j	                  |j
                  j                  d«      \  }}t        j                  t        j                  |«      dk  |j
                  j                  |j
                  j                  d d …df   k(  z  |j
                  j                  |j
                  j                  d d …df   k(  z  «      sJ ‚y )Nr*   Tç-Cëâ6?r   r@   )r   r2   r3   r4   rK   rL   rM   r   ÚallÚabsÚbounds)r&   r7   ÚlmlÚlml_gradients       r   Útest_converged_to_local_maximumrd   t   s·   € ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€Cà×3Ñ3°C·K±K×4EÑ4EÀtÓLÑ€Cˆä�6‰6Ü	�‰�Ó	 Ñ	$Ø�;‰;×Ñ §¡× 2Ñ 2²1°a°4Ñ 8Ñ8ñ	:à�;‰;×Ñ §¡× 2Ñ 2²1°a°4Ñ 8Ñ8ñ	:ôð ñ r   c                 óâ  — t        | ¬«      j                  t        t        «      }|j                  j
                  }t        j                  |j                  j                  j                  «      j                  }d}||t        j                  |d d …df   «       df<   t        |d d …df   |j                  j                  |z   «       t        |j                  j                  |d d …df   |z   «       y )Nr*   g»½×Ùß|Û=r@   r   )r   r2   r3   r4   rL   ra   r   ÚfinforM   rU   ÚmaxÚisfiniter   )r&   r7   ra   Úmax_Útinys        r   Útest_solution_inside_boundsrk   ‚   s¸   € ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€Cà�[‰[×Ñ€FÜ�8‰8�C—K‘K×%Ñ%×+Ñ+Ó,×0Ñ0€DØ€DØ,0€FŒB�K‰K˜šq !˜t™Ó%Ð% qÐ(Ñ)ä�fšQ ˜T‘l C§K¡K×$5Ñ$5¸Ñ$<Ô=Ü�c—k‘k×'Ñ'¨²°1°©¸Ñ)<Õ=r   z9https://github.com/scikit-learn/scikit-learn/issues/31366)ÚraisesÚreasonr   éýÿÿÿrB   é   c                 ó†  ‡— t        | «      } t        d„ | j                  «       D «       «      } | j                  di ||i¤Ž t	        | ¬«      j                  t        t        «      Š‰j                  | j                  d¬«      \  }}d}t        | j                  j                  «       ˆfd„|¬«      }t        ||d|d	z  ¬
«       y )Nc              3   óD   K  — | ]  }|j                  d «      sŒ|–— Œ y­w)r   N)Úendswith)Ú.0Únames     r   ú	<genexpr>z$test_lml_gradient.<locals>.<genexpr>š   s    è ø€ ò #Ø°·±¸nÕ0MŒñ#ùs   ‚ ™ r*   TrC   ç•Ö&è.>c                 ó(   •— ‰j                  | d«      S )NF)rK   )rM   r7   s    €r   ú<lambda>z#test_lml_gradient.<locals>.<lambda>¥   s   ø€ �c×1Ñ1°%¸Ó?€ r   )Úepsilonr^   éd   ©ÚrtolÚatol© )r   ÚnextÚ
get_paramsÚ
set_paramsr   r2   r3   r4   rK   rM   r   Úcopyr   )r&   r   Úlength_scale_param_nameÚ_rc   ry   Úlml_gradient_approxr7   s          @r   Útest_lml_gradientr†   �   s¼   ø€ ô �6‹]€FÜ"ñ #Ø×*Ñ*Ó,ô#ó Ðð €F×ÑÑ@Ð0°,Ð?Ò@ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€CØ×1Ñ1°&·,±,ÈdÐ1ÓS�O€A€|Ø€GÜ'Ø�‰×ÑÓÛ?ØôÐô
 �LÐ"5¸DÀwÐQTÁ}ÖUr   c                 óp  — t        | ¬«      }|j                  t        d¬«      \  }}t        |dd«       t	        |j
                  j                  «      dkD  rAt        t        j                  |«      t        j                  | j                  d   «      d«       y t        t        j                  |«      dd«       y )Nr*   Tr+   r   é   r@   )
r   r5   r3   r   rH   r&   rM   r   r6   Úexp)r&   r7   Úy_meanr9   s       r   Ú
test_priorr‹   «   s€   € ô #¨&Ô
1€Cà—K‘K¤¨d�KÓ3�M€FˆEä˜  1Ô%Ü
ˆ3�:‰:×ÑÓ˜qÒ äœBŸG™G E›N¬B¯F©F°6·<±<À±?Ó,CÀQÕGäœBŸG™G E›N¨A¨qÕ1r   c                 óæ  — t        | ¬«      j                  t        t        «      }|j	                  t
        d¬«      \  }}|j                  t
        d«      }t        |t        j                  |d«      d«       t        t        j                  |«      t        j                  |«      j                  «       z  t        j                  |d«      t        j                  |«      j                  «       z  d«       y )Nr*   Tr+   ià“ r@   )r   r2   r3   r4   r5   ÚX2Úsample_yr   r   Úmeanr6   rg   Úvar)r&   r7   rŠ   r9   Úsampless        r   Útest_sample_statisticsr’   º   sª   € ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€Cà—K‘K¤¨t�KÓ4�M€FˆEà�l‰lœ2˜vÓ&€Gô ˜¤§¡¨°Ó 3°QÔ7ÜÜ
�‰�‹œŸ™ ›×+Ñ+Ó-Ñ-Ü
�‰ˆw˜ÓœRŸW™W U›^×/Ñ/Ó1Ñ1Ø	õr   Ú	optimizerÚfmin_l_bfgs_bc                 ó¾   — t        || ¬«      }|j                  t        t        «       t	        |j
                  j                  dk(  j                  «       «      | du u sJ ‚y)zBTest that kernel parameters are unmodified when optimizer is None.©r&   r“   r-   N)r   r2   r3   r4   ÚboolrL   rM   r_   )r“   r&   r7   s      r   Útest_no_optimizerr˜   Ì   sM   € ô #¨&¸IÔ
F€CØ‡G�GŒAŒq„MÜ�—‘×"Ñ" cÑ)×.Ñ.Ó0Ó1°iÀ4Ð6GÑHÐHÑHr   ÚtargetrT   c                 óh  — t         j                  dk  rt        j                  d«       t	        | ¬«      j                  t        t        «      }|j                  t        d¬«      \  }}|j                  t        d¬«      \  }}t        t        j                  t        j                  |«      «      |«       y )Nr(   r)   r*   Tr+   ©Ú
return_std)r.   r/   r0   r1   r   r2   r3   r4   r5   r�   r   r   Úsqrtr6   )r&   r™   r7   rŠ   r9   Úy_stds         r   Útest_predict_cov_vs_stdrŸ   Õ   s}   € ô ‡{�{�eÒÜ�‰Ð:Ô;ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€CØ—K‘K¤¨t�KÓ4�M€FˆEØ—K‘K¤¨t�KÓ4�M€FˆEÜœŸ™¤§¡¨£Ó/°Õ7r   c                  ó¢  — t         j                  j                  d«      } | j                  ddd«      }|d d …df   d|d d …df   z  z   }t	        ddg«      }t        |¬«      j                  ||«      }t        j                  |j                  j                  d   «      t        j                  |j                  j                  d   «      dz  kD  sJ ‚y )	Nr   éÿÿÿÿr@   )é2   rA   r%   r   r*   rˆ   )
r   ÚrandomÚRandomStateÚuniformr   r   r2   r‰   rL   rM   )Úrngr3   r4   r&   r7   s        r   Útest_anisotropic_kernelr§   â   s¯   € ô
 �)‰)×
Ñ
 Ó
"€CØ�‰�B˜˜7Ó#€AØ	Š!ˆQˆ$‰�#˜š!˜Q˜$™‘-Ñ€Aä�#�s�‹_€FÜ
"¨&Ô
1×
5Ñ
5°a¸Ó
;€CÜ�6‰6�#—+‘+×#Ñ# AÑ&Ó'¬"¯&©&°·±×1BÑ1BÀ1Ñ1EÓ*FÈÑ*JÒJÐJÑJr   c                  óÖ  — d\  } }t         j                  j                  d«      }|j                  | |«      dz  dz
  }t        j                  |«      j                  d¬«      t        j                  d|z  «      j                  d¬«      z   |j                  d| ¬«      z   }t        d	d
«      t        d	g|z  dg|z  ¬«      z  t        dd¬«      z   }t         j                   }t        d«      D ]|  }t        ||d¬«      j                  ||«      }|j                  |j                  j                   «      }	|	|t        j"                  t         j$                  «      j&                  z
  kD  sJ ‚|	}Œ~ y )N)é   rA   r   rA   r@   ©ÚaxisrB   r%   )ÚscaleÚsizer   r!   )r^   r#   r   r$   )r$   ç      $@)Únoise_levelÚnoise_level_boundsrˆ   )r&   Ún_restarts_optimizerÚrandom_state)r   r£   r¤   Úrandnr   ÚsumÚnormalr?   r   r
   ÚinfÚranger   r2   rK   rL   rM   rf   Úfloat32Úeps)
Ú	n_samplesÚ
n_featuresr¦   r3   r4   r&   Úlast_lmlr±   Úgprb   s
             r   Útest_random_startsr¾   ð   sV  € ð "Ñ€IˆzÜ
�)‰)×
Ñ
 Ó
"€CØ�	‰	�)˜ZÓ(¨1Ñ,¨qÑ0€Aä
�‰ˆq‹	�‰˜1ˆÓÜ
�&‰&��Q‘‹-×
Ñ
 Ð
Ó
#ñ	$à
�*‰*˜3 Yˆ*Ó
/ñ	0ð ô ˆs�KÓ ¤3Ø�U˜ZÑ'¸k¸]ÈZÑ=Wô$ñ ä ¸ÔEñF€Fô —‘ˆw€HÜ % a£ò ÐÜ%ØØ!5Øô
÷ ‰#ˆa�‹)ð	 	ð
 ×(Ñ(¨¯©×)9Ñ)9Ó:ˆØ�X¤§¡¬¯©Ó 4× 8Ñ 8Ñ8Ò8Ð8Ð8Ø‰ñr   c                 óT  — t        j                  t        «      }t        j                  t        «      }t        |z
  |z  }t	        | ¬«      }|j                  t        |«       t	        | d¬«      }|j                  t        t        «       |j                  t        d¬«      \  }}||z  |z   }||z  }|j                  t        d¬«      \  }}	t        ||«       t        ||	«       |j                  t        d¬«      \  }
}||dz  z  }|j                  t        d¬«      \  }
}t        ||«       y)a  
    Test normalization of the target values in GP

    Fitting non-normalizing GP on normalized y and fitting normalizing GP
    on unnormalized y should yield identical results. Note that, here,
    'normalized y' refers to y that has been made zero mean and unit
    variance.

    r*   T©r&   Únormalize_yr›   r+   rA   N)
r   r�   r4   Ústdr   r2   r3   r5   r�   r   )r&   rŠ   rž   Úy_normr7   Úgpr_normr8   Ú
y_pred_stdÚy_pred_normÚy_pred_std_normr„   r9   Ú
y_cov_norms                r   Útest_y_normalizationrÉ     s  € ô �W‰W”Q‹Z€FÜ�F‰F”1‹I€EÜ�&‰j˜EÑ!€Fô #¨&Ô
1€CØ‡G�GŒAˆvÔô (¨vÀ4ÔH€HØ‡L�L””AÔð Ÿ™¤R°D˜Ó9Ñ€FˆJØ�e‰^˜fÑ$€FØ˜eÑ#€JØ#+×#3Ñ#3´BÀ4Ð#3Ó#HÑ €K�ä˜ Ô,Ü˜
 OÔ4à�{‰{œ2¨$ˆ{Ó/�H€A€uØ�E˜1‘HÑ€EØ×$Ñ$¤R°DÐ$Ó9�M€A€zä˜˜zÕ*r   c                  óF  — dt         z  } ddi}t        di |¤Ž}t        |d¬«      }|j                  t        | «       |j                  t        d¬«      \  }}t        j                  g d¢«      }t        j                  g d¢«      }t        ||d	d
¬«       t        ||dd
¬«       y)a–  
    Here we test that, when normalize_y=True, our GP can produce a
    sensible fit to training data whose variance is significantly
    larger than unity. This test was made in response to issue #15612.

    GP predictions are verified against predictions that were made
    using GPy which, here, is treated as the 'gold standard'. Note that we
    only investigate the RBF kernel here, as that is what was used in the
    GPy implementation.

    The following code can be used to recreate the GPy data:

    --------------------------------------------------------------------------
    import GPy

    kernel_gpy = GPy.kern.RBF(input_dim=1, lengthscale=1.)
    gpy = GPy.models.GPRegression(X, np.vstack(y_large), kernel_gpy)
    gpy.optimize()
    y_pred_gpy, y_var_gpy = gpy.predict(X2)
    y_pred_std_gpy = np.sqrt(y_var_gpy)
    --------------------------------------------------------------------------
    é
   r   r   TrÀ   r›   )gÀÆy(ŸV.@gV],±ü;Àg6çž}~¨CÀgåHÂW-@g¸Æ ×KQ@)gØ¼G‰'@gùsár‚§@g{Üu>5ä?g÷	ÚÃâàà?gÐ.[Â“ë?gìQ¸…ë±?r   r{   g333333Ã?Nr~   )
r4   r   r   r2   r3   r5   r�   r   rE   r   )Úy_largeÚ
RBF_paramsr&   r7   r8   rÅ   Ú
y_pred_gpyÚy_pred_std_gpys           r   Útest_large_variance_yrÐ   3  s�   € ð2 ”1‰f€Gð ! #Ð&€JÜÑ�:Ñ€FÜ
"¨&¸dÔ
C€CØ‡G�GŒAˆwÔØŸ™¤R°D˜Ó9Ñ€FˆJô —‘ÚKó€Jô
 —X‘XÚDó€Nô �F˜J¨T¸Õ:ô
 �J °TÀÖBr   c                  óÚ  — t        j                  t        t        dz  f«      j                  } t	        d¬«      }t        |d d¬«      }|j                  t        t        «       t        |d d¬«      }|j                  t        | «       |j                  t        d¬«      \  }}|j                  t        d¬«      \  }}|j                  t        d¬«      \  }}	|j                  t        d¬«      \  }}
t        ||d d …d	f   «       t        ||d d …d
f   dz  «       t        | j                  d
   «      D ]$  }t        ||d|f   «       t        |	|
d|f   «       Œ& |j                  t        d¬«      }|j                  t        d¬«      }|j                  dk(  sJ ‚|j                  dk(  sJ ‚t        ||d d …d	d d …f   «       t        D ]¨  }t        |d¬«      }|j                  t        t        «       t        |d¬«      }|j                  t        t        j                  t        t        f«      j                  «       t        |j                  j                   |j                  j                   d«       Œª y )NrA   r   r   F)r&   r“   rÁ   Tr›   r+   r   r@   .rË   ©rº   )rˆ   rË   )rˆ   rA   rË   rÀ   é   )r   Úvstackr4   ÚTr   r   r2   r3   r5   r�   r   r·   rY   rŽ   ÚkernelsrL   rM   )Úy_2dr&   r7   Úgpr_2dÚ	y_pred_1dÚy_std_1dÚ	y_pred_2dÚy_std_2dr„   Úy_cov_1dÚy_cov_2dr™   Úy_sample_1dÚy_sample_2ds                 r   Útest_y_multioutputrá   j  s  € ä�9‰9”aœ˜Q™�ZÓ ×"Ñ"€Dô ˜cÔ"€Fä
"¨&¸DÈeÔ
T€CØ‡G�GŒAŒq„Mä%¨V¸tÐQVÔW€FØ
‡J�JŒq�$ÔàŸ+™+¤b°T˜+Ó:Ñ€IˆxØ Ÿ.™.¬¸˜.Ó=Ñ€IˆxØ—+‘+œb¨T�+Ó2�K€A€xØ—.‘.¤°�.Ó5�K€A€xä˜	 9ªQ°¨T¡?Ô3Ü˜	 9ªQ°¨T¡?°QÑ#6Ô7ô ˜Ÿ
™
 1™Ó&ò =ˆÜ˜H h¨s°F¨{Ñ&;Ô<Ü˜H h¨s°F¨{Ñ&;Õ<ð=ð —,‘,œr¨R�,Ó0€KØ—/‘/¤"°�/Ó3€Kà×Ñ Ò'Ð'Ð'Ø×Ñ 
Ò*Ð*Ð*ä˜ [²°A²q°Ñ%9Ô:ô ò HˆÜ&¨fÀ$ÔGˆØ�‰””1Œä)°ÀTÔJˆØ�
‰
”1”b—i‘i¤¤A Ó'×)Ñ)Ô*ä˜CŸK™K×-Ñ-¨v¯~©~×/CÑ/CÀQÕGñHr   c                 óò   — d„ }t        | |¬«      }|j                  t        t        «       |j	                  |j
                  j                  «      |j	                  |j                  j                  «      kD  sJ ‚y )Nc                 ó^  — t         j                  j                  d«      }| | |d¬«      }}t        d«      D ]q  }t        j                  |j                  t        j                  d|d d …df   «      t        j                  d|d d …df   «      «      «      } | |d¬«      }||k  sŒn||}}Œs ||fS )Nr   FrC   r¢   éþÿÿÿr@   )r   r£   r¤   r·   Ú
atleast_1dr¥   ÚmaximumÚminimum)	Úobj_funcÚinitial_thetara   r¦   Ú	theta_optÚfunc_minr„   rM   r   s	            r   r“   z(test_custom_optimizer.<locals>.optimizerœ  s­   € Ü�i‰i×#Ñ# AÓ&ˆàÙ�]°%Ô8ð ˆ	ô �r“ò 	/ˆAÜ—M‘MØ—‘œBŸJ™J r¨6²!°Q°$©<Ó8¼"¿*¹*ÀQÈÊqÐRSÈtÉÓ:UÓVóˆEñ ˜¨eÔ4ˆAØ�8‹|Ø&+¨Q˜8‘	ð	/ð ˜(Ð"Ð"r   r–   )r   r2   r3   r4   rK   rL   rM   r&   )r&   r“   r7   s      r   Útest_custom_optimizerrì   ˜  sc   € ò#ô #¨&¸IÔ
F€CØ‡G�GŒAŒq„Mà×&Ñ& s§{¡{×'8Ñ'8Ó9¸C×<WÑ<WØ�
‰
×Ñó=ò ð ñ r   c                  ó‚  — t        j                  d«      j                  dd«      } t        j                  d«      }t	        «       }t        |d¬«      }d|z  }t        j                  t         j                  j                  t        j                  |«      ¬«      5  |j                  | |«       d d d «       y # 1 sw Y   y xY w)Né   é   r¡   r-   ©r&   Úalphaz—The kernel, %s, is not returning a positive definite matrix. Try gradually increasing the 'alpha' parameter of your GaussianProcessRegressor estimator.©Úmatch)r   ÚarangeÚreshaperX   r   r   r0   rl   ÚlinalgÚLinAlgErrorÚreÚescaper2   )r3   r4   r&   r7   Úmessages        r   Útest_gpr_correct_error_messagerû   ³  s•   € Ü
�	‰	�"‹×Ñ˜a Ó$€AÜ
�‰�‹
€AÜ‹\€FÜ
"¨&¸Ô
<€Cð	.ð 17ñ	7ð ô 
�‰”r—y‘y×,Ñ,´B·I±I¸gÓ4FÔ	Gñ Ø�‰��1Œ÷÷ ñ ús   ÂB5Â5B>c                 óf  — t        | d¬«      }t        | d¬«      }t        j                  t        t        d   f«      }t        j                  t
        t
        d   dz   f«      }|j                  ||«       t        j                  t        t        d   dz   f«      }t        j                  t
        t
        d   dz   f«      }|j                  ||«       t        j                  ddd«      d d …d f   }|j                  |d¬	«      \  }}|j                  |d¬	«      \  }}	t        ||«       t        ||	«       y )
Nr"   rð   r   r@   gVçž¯Ò<rË   rz   Tr›   )
r   r   rÔ   r3   Úhstackr4   r2   Úlinspacer5   r   )
r&   Úgpr_equal_inputsÚgpr_similar_inputsÚX_Úy_ÚX_testÚy_pred_equalÚy_std_equalÚy_pred_similarÚy_std_similars
             r   Útest_duplicate_inputr  Â  s  € ô 0°vÀTÔJÐÜ1¸ÀtÔLÐä	�‰”A”q˜‘t�9Ó	€BÜ	�‰”A”q˜‘t˜a‘x�=Ó	!€BØ×Ñ˜˜RÔ ä	�‰”A”q˜‘t˜e‘|Ð$Ó	%€BÜ	�‰”A”q˜‘t˜a‘x�=Ó	!€BØ×Ñ˜2˜rÔ"ä�[‰[˜˜B Ó$¢Q¨ WÑ-€FØ 0× 8Ñ 8¸ÈDÐ 8Ó QÑ€L�+Ø$6×$>Ñ$>¸vÐRVÐ$>Ó$WÑ!€N�Mä˜ nÔ5Ü˜ ]Õ3r   c                  óf  — t        dd¬«      t        dd¬«      z  } t        «       }|j                  t        d¬«      \  }}|j                  t        d¬«      \  }}t        | ¬«      }|j                  t        d¬«      \  }}|j                  t        d¬«      \  }}t        ||«       t        ||«       y )	Nr   r   )Úconstant_value_bounds©r   Tr›   r+   r*   )r?   r   r   r5   r3   r   )Údefault_kernelÚgpr1r„   Úy_std1Úy_cov1Úgpr2Úy_std2Úy_cov2s           r   Útest_no_fit_default_predictr  Ø  sŸ   € ä�s°'Ô:¼SØ ô>ñ €Nô $Ó%€DØ—‘œQ¨4�Ó0�I€A€vØ—‘œQ¨4�Ó0�I€A€vä#¨>Ô:€DØ—‘œQ¨4�Ó0�I€A€vØ—‘œQ¨4�Ó0�I€A€vä˜f fÔ-Ü˜f fÕ-r   c                  ó8  — t        ddg¬«      } t        | ¬«      }d}t        j                  t        |¬«      5  |j                  t        t        «       d d d «       t        ddg¬«      t        dd	g¬«      z   }t        |¬«      }t        j                  d
¬«      5 }t        j                  d«       |j                  t        t        «       t        |«      dk(  sJ ‚t        |d   j                  t        «      sJ ‚|d   j                  j                   d   dk(  sJ ‚t        |d   j                  t        «      sJ ‚|d   j                  j                   d   dk(  sJ ‚	 d d d «       t#        j$                  t        d«      }t        ddgddg¬«      }t        |¬«      }t        j                  d
¬«      5 }t        j                  d«       |j                  |t        «       t        |«      dk(  sJ ‚t        |d   j                  t        «      sJ ‚|d   j                  j                   d   dk(  sJ ‚t        |d   j                  t        «      sJ ‚|d   j                  j                   d   dk(  sJ ‚	 d d d «       y # 1 sw Y   �Œ%xY w# 1 sw Y   �Œ*xY w# 1 sw Y   y xY w)Nr$   r   r  r*   z²The optimal value found for dimension 0 of parameter length_scale is close to the specified upper bound 0.001. Increasing the bound and calling fit again may find a better value.rò   ©r°   r    g     jø@T)ÚrecordÚalwaysrA   r   zµThe optimal value found for dimension 0 of parameter k1__noise_level is close to the specified upper bound 0.001. Increasing the bound and calling fit again may find a better value.r@   z·The optimal value found for dimension 0 of parameter k2__length_scale is close to the specified lower bound 1000.0. Decreasing the bound and calling fit again may find a better value.r   r   r®   r#   r   z±The optimal value found for dimension 0 of parameter length_scale is close to the specified lower bound 10.0. Decreasing the bound and calling fit again may find a better value.z±The optimal value found for dimension 1 of parameter length_scale is close to the specified lower bound 10.0. Decreasing the bound and calling fit again may find a better value.)r   r   r0   Úwarnsr   r2   r3   r4   r
   ÚwarningsÚcatch_warningsÚsimplefilterrH   Ú
issubclassÚcategoryrú   Úargsr   Útile)	r&   r7   Úwarning_messageÚ
kernel_sumÚgpr_sumr  ÚX_tileÚkernel_dimsÚgpr_dimss	            r   Útest_warning_boundsr&  é  s‚  € Ü d¨D \Ô2€FÜ
"¨&Ô
1€Cð	ð ô 
�‰Ô(°Ô	@ñ Ø�‰””1Œ÷ô °°t°Ô=ÄØ  #˜JôAñ €Jô '¨jÔ9€GÜ	×	 Ñ	 ¨Ô	-ð 
°Ü×Ñ˜hÔ'Ø�‰”A”qÔä�6‹{˜aÒÐÐä˜& ™)×,Ñ,Ô.@ÔAÐAÐAà�1‰I×Ñ×"Ñ" 1Ñ%ð *1ò 1ð	
ð1ô ˜& ™)×,Ñ,Ô.@ÔAÐAÐAà�1‰I×Ñ×"Ñ" 1Ñ%ð *1ò 1ð	
ñ1÷%
ô4 �W‰W”Q˜‹]€FÜ C¨ :ÀCÈÀ:ÔN€KÜ'¨{Ô;€Hä	×	 Ñ	 ¨Ô	-ð 
°Ü×Ñ˜hÔ'Ø�‰�VœQÔä�6‹{˜aÒÐÐä˜& ™)×,Ñ,Ô.@ÔAÐAÐAà�1‰I×Ñ×"Ñ" 1Ñ%ð *1ò 1ð	
ð1ô ˜& ™)×,Ñ,Ô.@ÔAÐAÐAà�1‰I×Ñ×"Ñ" 1Ñ%ð *1ò 1ð	
ñ1÷%
ð 
÷Kñ ú÷
ñ 
ú÷<
ð 
ús%   ¸I6ÂC JÆ0B<JÉ6J ÊJÊJc                  ó�   — dt        d¬«      z  } t        ddd¬«      }| |z   }t        |¬«      j                  t        t
        «       y )Ng     ˆ£@g      I@r   r   r   )r   ÚperiodicityÚperiodicity_boundsr*   )r   r	   r   r2   r3   r4   )Úk1Úk2r&   s      r   Ú%test_bound_check_fixed_hyperparameterr,  2  sD   € ð 
”3 DÔ)Ñ	)€BÜ	Ø c¸gô
€Bð �"‰W€FÜ FÔ+×/Ñ/´´1Õ5r   c                 ó”  — t        j                  t        j                  d   t         j                  ¬«      }t        | d¬«      }|j                  t        |«       |j                  t        j                  d«      k(  sJ ‚|j                  t        d¬«      \  }}t        ||«       t        t        j                  |«      dd¬	«       t        j                  d   d
}}t         j                  j                  d«      }t        j                  |j!                  |df¬«      t        j"                  |dfd
¬«      gd¬«      }|j                  t        |«       |j                  t        d¬«      \  }	}
t        |	dd…df   d
«       t        t        j                  |
d   «      dd¬	«       |	j                  ||fk(  sJ ‚|
j                  |||fk(  sJ ‚y)a  Check that the std. dev. is affected to 1 when normalizing a constant
    feature.
    Non-regression test for:
    https://github.com/scikit-learn/scikit-learn/issues/18318
    NaN where affected to the target when scaling due to null std. dev. with
    constant target.
    r   rT   TrÀ   r   r+   r-   rv   )r}   rA   r@   )r­   )rY   Ú
fill_valuerª   N).r@   )r   rX   r3   rY   rZ   r   r2   Ú_y_train_stdr0   rQ   r5   r   r6   r£   r¤   Úconcatenaterµ   Úfull)r&   Ú
y_constantr7   r8   r9   rº   Ú	n_targetsr¦   r4   ÚY_predÚY_covs              r   Útest_constant_targetr6  >  sn  € ô —‘œŸ™ ™¬2¯:©:Ô6€Jä
"¨&¸dÔ
C€CØ‡G�GŒAˆzÔØ×ÑœvŸ}™}¨SÓ1Ò1Ð1Ð1à—K‘K¤¨d�KÓ3�M€FˆEÜ�F˜JÔ'ä”B—G‘G˜E“N C¨dÕ3ô Ÿ7™7 1™: qˆy€IÜ
�)‰)×
Ñ
 Ó
"€CÜ
�‰à�J‰J˜Y¨˜NˆJÓ+Ü�G‰G˜9 a˜.°QÔ7ð	
ð ô	€Að ‡G�GŒAˆq„MØ—K‘K¤¨d�KÓ3�M€FˆEä�Fš1˜a˜4‘L !Ô$Ü”B—G‘G˜E &™MÓ*¨C°dÕ;à�<‰<˜I yÐ1Ò1Ð1Ð1Ø�;‰;˜9 i°Ð;Ò;Ð;Ñ;r   c            	      ó&  — t        dd«      t        ddgd«      z  t        d¬«      z   } t        | dd¬	«      }t	        j
                  d
d
gddgdd
gd
dgddgddgg«      }t	        j
                  dgdgdgdgdgdgg«      }|j                  ||«       t	        j
                  ddgddgddgddgg«      }|j                  |d¬«      \  }}|j                  |d¬«      \  }}t        |t	        j                  t	        j                  |«      «      d¬«       y)a
  Check the consistency between the returned std. dev. and the covariance.
    Non-regression test for:
    https://github.com/scikit-learn/scikit-learn/issues/19936
    Inconsistencies were observed when the kernel cannot be inverted (or
    numerically stable).
    gTã¥ l+A)gê-�™—q=g   ¢”mBgë‹„¶œz‚@gØG§®\·”@r$   )r¯   r   N)r&   rñ   r“   r-   g6²§ô~Éø?g6²§ô~Éè¿g6²§ô~Éø¿g6²§ô~Éè?g6‡´$}ˆí½g±NøÕ­Àg¼Hx­@gR•|=Ùô¿gd-Ói¼¸õ¿gžŸ^ L
@gÖz°Þûþ¿gÖz°Þûþ?Tr›   r+   )r|   )r?   r   r
   r   r   rE   r2   r5   r   r�   Údiagonal)	r&   r7   ÚX_trainÚy_trainr  Úpred1rÂ   Úpred2Úcovs	            r   Ú2test_gpr_consistency_std_cov_non_invertible_kernelr>  g  sK  € ô ˆ}˜mÓ,¬sØ	˜Ð&¨ó0ñ ä Ô%ñ&€Fô #¨&¸ÀTÔ
J€CÜ�h‰hà�#ˆJØ˜Ð%Ø˜#ÐØ�+ÐØ˜Ð$Ø˜*Ð%ð	
ó	€Gô �h‰hàÐØÐØˆOØÐØÐØˆOð	
ó	€Gð ‡G�GˆG�WÔÜ�X‰Xà˜+Ð&Ø˜Ð%Ø˜*Ð%Ø˜Ð$ð		
ó€Fð —‘˜V°�Ó5�J€Eˆ3Ø—‘˜V°�Ó5�J€Eˆ3Ü�CœŸ™¤§¡¨SÓ!1Ó2¸Ö>r   zparams, TypeError, err_msgrñ   rz   zCalpha must be a scalar or an array with same number of entries as yr  rA   )r&   r±   z#requires that all bounds are finitec                 ó¦   — t        di | ¤Ž}t        j                  ||¬«      5  |j                  t        t
        «       ddd«       y# 1 sw Y   yxY w)z0Check that expected error are raised during fit.rò   Nr~   )r   r0   rl   r2   r3   r4   )ÚparamsÚ	TypeErrorÚerr_msgr7   s       r   Útest_gpr_fit_errorrC  ”  sA   € ô( #Ñ
, VÑ
,€CÜ	�‰�y¨Ô	0ñ Ø�‰””1Œ÷÷ ñ ús   £AÁAc                  óä   — t        t        «       ¬«      j                  t        t        «      } d}t        j                  t        |¬«      5  | j                  d¬«       ddd«       y# 1 sw Y   yxY w)z7Check that we raise the proper error in the LML method.r*   z.Gradient can only be evaluated for theta!=Nonerò   TrC   N)	r   r   r2   r3   r4   r0   rl   Ú
ValueErrorrK   ©r7   rB  s     r   Útest_gpr_lml_errorrG  ­  sT   € ä
"¬#«%Ô
0×
4Ñ
4´Q¼Ó
:€Cà>€GÜ	�‰”z¨Ô	1ñ 8Ø×#Ñ#°$Ð#Ô7÷8÷ 8ñ 8ús   Á
A&Á&A/c                  óð   — t        t        «       ¬«      j                  t        t        «      } d}t        j                  t        |¬«      5  | j                  t        dd¬«       ddd«       y# 1 sw Y   yxY w)z4Check that we raise the proper error during predict.r*   z9At most one of return_std or return_cov can be requested.rò   T©r,   rœ   N)	r   r   r2   r3   r4   r0   rl   ÚRuntimeErrorr5   rF  s     r   Útest_gpr_predict_errorrK  ¶  sU   € ä
"¬#«%Ô
0×
4Ñ
4´Q¼Ó
:€CàI€GÜ	�‰”|¨7Ô	3ñ 9Ø�‰”A $°4ˆÔ8÷9÷ 9ñ 9ús   Á
A,Á,A5rÁ   TFr3  )Nr@   rË   c                 óì  — t         j                  j                  d«      }d\  }}}|f}|�||fz   }|f}|�|dkD  r||fz   }|j                  ||«      }|j                  ||«      }	 |j                  |Ž }
t	        | ¬«      }|j                  ||
«       |j                  |	d¬«      \  }}|j                  |	d¬«      \  }}|j                  |k(  sJ ‚|j                  |k(  sJ ‚|j                  |f|z   k(  sJ ‚y)	a´  Check the shapes of y_mean, y_std, and y_cov in single-output
    (n_targets=None) and multi-output settings, including the edge case when
    n_targets=1, where the sklearn convention is to squeeze the predictions.

    Non-regression test for:
    https://github.com/scikit-learn/scikit-learn/issues/17394
    https://github.com/scikit-learn/scikit-learn/issues/18065
    https://github.com/scikit-learn/scikit-learn/issues/22174
    éÒ  )rï   é	   rW   Nr@   ©rÁ   Tr›   r+   )r   r£   r¤   r³   r   r2   r5   rY   )rÁ   r3  r¦   r»   Ún_samples_trainÚn_samples_testÚy_train_shapeÚy_test_shaper9  r  r:  Úmodelr8   rž   r„   r9   s                   r   Útest_predict_shapesrU  ¿  s  € ô �)‰)×
Ñ
 Ó
%€Cà29Ñ/€J� à$Ð&€MØÐØ%¨¨Ñ4ˆð #Ð$€LØÐ ¨Q¢Ø# y lÑ2ˆà�i‰i˜¨Ó4€GØ�Y‰Y�~ zÓ2€FØˆc�i‰i˜Ð'€Gä$°Ô=€EØ	‡I�Iˆg�wÔà—M‘M &°T�MÓ:�M€FˆEØ�}‰}˜V°ˆ}Ó5�H€A€uà�<‰<˜<Ò'Ð'Ð'Ø�;‰;˜,Ò&Ð&Ð&Ø�;‰;˜>Ð+¨lÑ:Ò:Ð:Ñ:r   c                 óv  — t         j                  j                  d«      }d\  }}d}d}|f}|�||fz   }|�|dkD  r|||f}n||f}|j                  ||«      }	|j                  ||«      }
 |j                  |Ž }t	        | ¬«      }|j                  |	|«       |j                  |
|¬«      }|j                  |k(  sJ ‚y)	a&  Check the shapes of y_samples in single-output (n_targets=0) and
    multi-output settings, including the edge case when n_targets=1, where the
    sklearn convention is to squeeze the predictions.

    Non-regression test for:
    https://github.com/scikit-learn/scikit-learn/issues/22175
    rM  )rï   rN  rW   rˆ   Nr@   rO  rÒ   )r   r£   r¤   r³   r   r2   rŽ   rY   )rÁ   r3  r¦   r»   rP  Ún_samples_X_testÚn_samples_y_testrR  rS  r9  r  r:  rT  Ú	y_sampless                 r   Útest_sample_y_shapesrZ  ç  sÞ   € ô �)‰)×
Ñ
 Ó
%€Cà"&Ñ€J�àÐàÐà$Ð&€MØÐØ%¨¨Ñ4ˆð Ð ¨Q¢Ø(¨)Ð5EÐF‰à(Ð*:Ð;ˆà�i‰i˜¨Ó4€GØ�Y‰YÐ'¨Ó4€FØˆc�i‰i˜Ð'€Gä$°Ô=€Eð 
‡I�Iˆg�wÔà—‘˜vÐ1A�ÓB€IØ�?‰?˜lÒ*Ð*Ñ*r   )Nr@   rA   rB   rº   r@   rˆ   c                 óP  — t         j                  j                  d«      }|j                  dd«      }|j                  d| �| nd«      }t	        | ¬«      }|j                  ||¬«      j                  }|j                  ||«       |j                  ||¬«      j                  }||k(  sJ ‚y)zJCheck the output shape of `sample_y` is consistent before and after `fit`.é   rË   rB   Nr@   ©r3  rÒ   )r   r£   r¤   r³   r   rŽ   rY   r2   )r3  rº   r¦   r3   r4   rT  Úshape_before_fitÚshape_after_fits           r   Útest_sample_y_shape_with_priorr`    s•   € ô �)‰)×
Ñ
 Ó
%€Cà�	‰	�"�aÓ€AØ�	‰	�" 9Ð#8‘i¸aÓ@€Aä$¨yÔ9€EØ—~‘~ a°9�~Ó=×CÑCÐØ	‡I�Iˆa�„OØ—n‘n Q°)�nÓ<×BÑB€OØ˜Ò.Ð.Ñ.r   c                 ó$  — t         j                  j                  d«      }d}|j                  |d«      }|j                  || �| nd«      }t	        | ¬«      }|j                  |d¬«      \  }}|j                  |d¬	«      \  }}	|j                  ||«       |j                  |d¬«      \  }
}|j                  |d¬	«      \  }}|j                  |
j                  k(  sJ ‚|j                  |j                  k(  sJ ‚|	j                  |j                  k(  sJ ‚y)
z<Check the output shape of `predict` with prior distribution.r\  rË   rB   Nr@   r]  Tr+   r›   )r   r£   r¤   r³   r   r5   r2   rY   )r3  r¦   Ún_sampler3   r4   rT  Ú
mean_priorÚ	cov_priorr„   Ú	std_priorÚ	mean_postÚcov_postÚstd_posts                r   Útest_predict_shape_with_priorri  '  sù   € ô �)‰)×
Ñ
 Ó
%€Cà€HØ�	‰	�(˜AÓ€AØ�	‰	�(¨Ð)>™IÀAÓF€Aä$¨yÔ9€EØ!ŸM™M¨!¸˜MÓ=Ñ€J�	Ø—=‘= ¨t�=Ó4�L€A€yà	‡I�Iˆa�„OØŸ-™-¨°d˜-Ó;Ñ€IˆxØ—-‘- ¨d�-Ó3�K€A€xà×Ñ˜yŸ™Ò.Ð.Ð.Ø�?‰?˜hŸn™nÒ,Ð,Ð,Ø�?‰?˜hŸn™nÒ,Ð,Ñ,r   c                  ó&  — t         j                  j                  d«      } | j                  dd«      }| j                  dd«      }t	        d¬«      }t        j                  t        d¬«      5  |j                  ||«       d	d	d	«       y	# 1 sw Y   y	xY w)
zmCheck that an error is raised when the number of targets seen at fit is
    inconsistent with n_targets.
    r   rË   rB   rA   r@   r]  z!The number of targets seen in `y`rò   N)	r   r£   r¤   r³   r   r0   rl   rE  r2   )r¦   r3   r4   rT  s       r   Útest_n_targets_errorrk  =  ss   € ô �)‰)×
Ñ
 Ó
"€CØ�	‰	�"�aÓ€AØ�	‰	�"�aÓ€Aä$¨qÔ1€EÜ	�‰”zÐ)LÔ	Mñ Ø�	‰	�!�QŒ÷÷ ñ ús   Á+BÂBc                   ó   — e Zd ZdZd„ Zy)ÚCustomKernelz¼
    A custom kernel that has a diag method that returns the first column of the
    input matrix X. This is a helper for the test to check that the input
    matrix X is not mutated.
    c                 ó   — |d d …df   S )Nr   r~   )Úselfr3   s     r   r6   zCustomKernel.diagQ  s   € Ø’�A�‰wˆr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r6   r~   r   r   rm  rm  J  s   „ ñór   rm  c                  óâ   — t        t        «       ¬«      j                  t        t        «      } t        j                  t        «      }| j                  t        d¬«      \  }}t        t        |«       y)zä
    Check that the input X is not modified by the predict method of the
    GaussianProcessRegressor when setting return_std=True.

    Non-regression test for:
    https://github.com/scikit-learn/scikit-learn/issues/24340
    r*   Tr›   N)
r   rm  r2   r3   r4   r   r‚   r�   r5   r   )r7   ÚX2_copyr„   s      r   Ú#test_gpr_predict_input_not_modifiedrv  U  sJ   € ô #¬,«.Ô
9×
=Ñ
=¼aÄÓ
C€Cä�g‰g”b‹k€GØ�;‰;”r dˆ;Ó+�D€A€qä”B˜Õ r   c                 óœ   — t        | ¬«      j                  t        t        «      }|j	                  t        dd¬«      }t        |t        «       y)z\
    Check that only y_mean is returned when return_cov=False and
    return_std=False.
    r*   FrI  N)r   r2   r3   r4   r5   r   )r&   r7   r8   s      r   Ú%test_gpr_predict_no_cov_no_std_returnrx  e  s9   € ô #¨&Ô
1×
5Ñ
5´a¼Ó
;€CØ�[‰[œ u¸ˆ[Ó?€Fä�FœAÕr   )Vrs  rø   r.   r  Únumpyr   r0   Úscipy.optimizer   Úsklearn.baser   Úsklearn.exceptionsr   Úsklearn.gaussian_processr   Ú sklearn.gaussian_process.kernelsr   r   r	   r
   r   r?   Ú4sklearn.gaussian_process.tests._mini_sequence_kernelr   Úsklearn.utils._testingr   r   r   r   r   Ú
atleast_2drÕ   r3   r�   rF   r4   Úfixed_kernelrÖ   Únon_fixed_kernelsÚmarkÚparametrizer:   rI   rO   rR   r\   rd   rk   r1   ÚAssertionErrorÚlogspacer†   r‹   r’   r˜   rX   rY   rZ   rŸ   r§   r¾   rÉ   rÐ   rá   rì   rû   r  r  r&  r,  r6  r>  ÚzerosrE  r¶   rC  rG  rK  rU  rZ  r`  ri  rk  rm  rv  rx  r*   s   0r   ú<module>r‰     sô  ðÙ -ó
 
Û 
Û ã Û Ý (å Ý 1Ý =÷ó õõ O÷ó òð €B‡M�MÒ0Ó1×3Ñ3€Ø€R‡]�]Ò,Ó-×/Ñ/€Ù€aƒD‡J�JƒL€á ¸ÔA€á�SÔØÙ�S¨kÔ:Ù€cˆ;Ó™#¨3ÀKÔPÑPÙ€cˆ;Ó™#¨3ÀKÔPÑPÙˆˆkÓñá€cˆ;Ó™#¨3ÀKÔPÑPÙˆˆkÓñð	€ð +2ÖL °V¸|Ó5K’VÒLÐ ð ‡�×Ñ˜ 7Ó+ñ	-ó ,ð	-ò-ð ‡�×Ñ˜Ð#4Ó5ñó 6ðð ‡�×Ñ˜ 7Ó+ñó ,ðð ‡�×Ñ˜ 7Ó+ñ;ó ,ð;ð ‡�×Ñ˜Ð#4Ó5ñ
ó 6ð
ð ‡�×Ñ˜Ð#4Ó5ñ
>ó 6ð
>ð ‡�×ÑØØFð ó ð ‡�×Ñ˜Ð#4Ó5Ø‡�×Ñ˜¨¨¯©°R¸¸BÓ)?Ó@ñVó Aó 6ó	ðVð* ‡�×Ñ˜ 7Ó+ñ2ó ,ð2ð ‡�×Ñ˜ 7Ó+ñó ,ðð" ‡�×Ñ˜ t¨_Ð&=Ó>Ø‡�×Ñ˜ D©#«% =Ó1ñIó 2ó ?ðIð ‡�×Ñ˜ 7Ó+Ø‡�×Ñ˜ A w r§w¡w¨q¯w©w°q©zÀÇÁÔ'LÐ#MÓNñ8ó Oó ,ð8òKòð6 ‡�×Ñ˜ 7Ó+ñ$+ó ,ð$+òN4Còn+Hð\ ‡�×Ñ˜Ð#4Ó5ñó 6ðò4ð ‡�×Ñ˜ 7Ó+ñ4ó ,ð4ò*.ò"F
òR	6ð ‡�×Ñ˜ 7Ó+ñ%<ó ,ð%<òP*?ðZ ‡�×ÑØ ð �h�b—h‘h˜s“mÐ$ØØQð	
ñ &¸2¿6¹6¸'À2Ç6Á6Ð9JÔKØ()ñð Ø1ð	
ðóñ$ó%ð$ò8ò9ð ‡�×Ñ˜¨¨u¨Ó6Ø‡�×Ñ˜¢mÓ4ñ#;ó 5ó 7ð#;ðL ‡�×Ñ˜¨¨u¨Ó6Ø‡�×Ñ˜¢mÓ4ñ++ó 5ó 7ð++ð\ ‡�×Ñ˜¢oÓ6Ø‡�×Ñ˜ q¨! fÓ-ñ/ó .ó 7ð/ð ‡�×Ñ˜¢oÓ6ñ-ó 7ð-ò*
ô�1ô ò!ð  ‡�×Ñ˜ 7Ó+ñó ,ñùòa Ms   Ä
VÄ"V