<div dir="ltr"><div class="gmail_default" style="font-size:large;color:rgb(0,0,0)">​​</div><div class="gmail_default" style="font-size:large;color:rgb(0,0,0)">Hello,</div><div class="gmail_default" style="font-size:large;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:large;color:rgb(0,0,0)">I am kind of confused about the use of sample_weights parameter in the fit() function of <span class="" id=":33e.1" tabindex="-1" style="">RandomForestRegressor</span>. Here is my problem:</div><div class="gmail_default" style="font-size:large;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:large;color:rgb(0,0,0)">I am trying to predict the binding affinity of small molecules to a protein. I have a training set of 709 molecules and a blind test set of 180 molecules. I want to find those features that are more important for the correct prediction of the binding affinity of those 180 molecules of my blind test set.  My rationale is that if I give more emphasis to the similar molecules in the training set, then I will get higher <span class="" id=":33e.2" tabindex="-1" style="">importances</span> for those features that have higher predictive ability for this specific blind test set of 180 molecules. To this end, I weighted the 709 training set molecules by their maximum similarity to the 180 molecules, selected only those features with high importance and trained a new RF with all 709 molecules. I got some results but I am not satisfied. Is this the right way to use sample_weights in RF. I would appreciate any advice or suggested work flow.</div><div class="gmail_default" style="font-size:large;color:rgb(0,0,0)"><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>                          <p style="margin-bottom:0cm" align="LEFT"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><font size="2">======================================================================</font></span></span></p>
<p style="margin-bottom:0cm" align="LEFT"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><font size="2">Dr Thomas <span class="" id=":33e.4" tabindex="-1" style="">Evangelidis</span></font></span></span></p>
<p style="margin-bottom:0cm" align="LEFT"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><font size="2">Post-doctoral Researcher<br></font></span></span></p><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><font size="2"><span class="" id=":33e.5" tabindex="-1" style="">CEITEC</span> - Central European Institute of Technology<br>Masaryk University<br><span class="" id=":33e.6" tabindex="-1" style="">Kamenice</span> 5/A35/2S049, <br>62500 Brno, Czech Republic <br></font></span></span></div><div dir="ltr"><span style="color:rgb(0,0,0)"><br></span><p style="margin-bottom:0cm" align="LEFT"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><font size="2">email: <a href="mailto:tevang@pharm.uoa.gr" target="_blank"><span class="" id=":33e.7" tabindex="-1" style="">tevang</span>@<span class="" id=":33e.8" tabindex="-1" style="">pharm</span>.<span class="" id=":33e.9" tabindex="-1" style="">uoa</span>.gr</a></font></span></span></p>
<p style="margin-bottom:0cm" align="LEFT"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><font size="2">                <a href="mailto:tevang3@gmail.com" target="_blank">tevang3@gmail.com</a></font></span></span></p>
<p style="margin-bottom:0cm" align="LEFT"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><font size="2"><br>website: <a href="https://sites.google.com/site/thomasevangelidishomepage/" target="_blank"><span class="" id=":33e.10" tabindex="-1" style="">https</span>://sites.google.com/site/<span class="" id=":33e.11" tabindex="-1" style="">thomasevangelidishomepage</span>/</a></font></span></span></p><span style="color:rgb(0,0,0)"><br></span><p style="margin-bottom:0cm" align="LEFT">
</p>
</div></div></div></div></div></div></div></div>
</div>