<div dir="ltr">Hi Mayank,<br><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<div></div><div>1. Is fcount meant to store the number of features in the featurevector.h? What is the need to keep it inside the feature vector. Will it not be same for all the feature vectors. And by default that must be 19.</div>
</div></blockquote><div><br></div><div>Yes 'fcount' would be same for all the feature vectors. It belongs to feature vector because it's the property of feature vector. Every static reference to number 19 should be changed by a dynamic reference fv.fcount or something and when provided with the training data it should be set automatically from the highest index of feature seen in the data if the user does not set it explicitly.<br>
 <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">

<div>2. In svmranker.cc there is a data member called weights[]. Is it possible to get the weights from the learned model in libsvm. Actually I can't find any in letor_internal_refactored.cc. And shouldn't there be a data member as struct  <b>svm_model*</b> which will point to the model learnt so that functions <b>load_model</b> and <b>save_model</b> don't need an extra argument.</div>
</div></blockquote><div><br></div><div>The svmranker uses libsvm for the training. The model file does not store the weight vector clearly rather the model files contain support vectors(SV). So we use the model loading module accordingly. But you can analyse the model files and extract the weight vector if the model file allows. I vaguely remember it was not so obvious to interpret model files at that time.<br>
<br></div><div>Cheers,<br></div><div>Parth.<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">

<div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Mayank</div></font></span></div>
<br>_______________________________________________<br>
Xapian-devel mailing list<br>
<a href="mailto:Xapian-devel@lists.xapian.org">Xapian-devel@lists.xapian.org</a><br>
<a href="http://lists.xapian.org/mailman/listinfo/xapian-devel" target="_blank">http://lists.xapian.org/mailman/listinfo/xapian-devel</a><br>
<br></blockquote></div><br></div></div>