<div dir="ltr">What exactly do you mean by "port"? Put already fitted models into a sklearn estimator object? You can do this as follows:<br><div><br>You should be able to create a `estimator = sklearn.kernel_ridge.KernelRidge(...)` object, call `fit` to some random data of the appropriate shape, and then set `estimator.dual_coef_` to the ones from your MLPY model (the sklearn version sets them here: <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/kernel_ridge.py#L165">https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/kernel_ridge.py#L165</a>).<br><br><br></div><div>If this is not what you mean, then maybe you just want to refit them using the appropriate KernelRidge kernel?</div><div><br></div><div>Hope this helps!</div><div><br></div><div>Michael<br></div><div><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 19, 2019 at 12:43 PM Chapman, James E <<a href="mailto:jchapman48@gatech.edu">jchapman48@gatech.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_-9195972730498240362WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I have some old KRR models from MLPY and I need to port those models over to a new code written with scikit-learn (transfer MLPY KRR data to a scikit-learn KernelRidge instance). Does anyone know if this is
 even possible, and if so, could you give me some suggestions as to how to accomplish it?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Thanks and regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">James<u></u><u></u></span></p>
</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>