<div><div dir="auto">Hi,</div></div><div dir="auto"><br></div><div dir="auto">The default score used by GridSearchCV is the one of the estimator; for KernelDensity it’s the total log likelihood.</div><div dir="auto"><br></div><div dir="auto">As far as I know it is not possible to have different bandwidths.</div><div dir="auto"><br></div><div dir="auto">Albert </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon 8 Jul 2019 at 15:50, Naiping Dong <<a href="mailto:np.dong572@gmail.com">np.dong572@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">How sklearn perform cross validation "GridSearchCV" for bandwidth selection? It seems that the CV for kernel density estimation is different with the one used for classification. Is it used least square errors for this aim?<div><br></div><div>Second, is it possible for me to use variable bandwidth for kernel density estimation, that is, use different bandwidth for different data point?<br clear="all"><div><br></div><div>Thanks.</div></div></div><div dir="ltr"><div>-- <br><div dir="ltr" class="m_8155653419107120047gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="font-family:georgia,serif">Elkan</span><br><font size="2"><span style="font-family:"Times New Roman",serif" lang="EN-US">Department of Chemistry, HKU, HK</span></font><br></div></div></div></div></div></div>
_______________________________________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org" target="_blank">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scikit-learn</a><br>
</blockquote></div></div>