Hello Rishabh, The attached diff file should help you to refactor the existing letor code and plug in your code easily. I have defined the header files with the necessary flow. I have also specified the ranker class, which should be implemented by a new LTR models, ListNet and ListMLE in your case. The evaluation file should be used for validating the performance of the algorithm in the training so which you plan to implement. You should take the corresponding definitions from the letor_internal.cc and create the corresponding .cc files. Feel free to do necessary changes and in case of any doubt, feel free to ask. Regards, Parth. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120424/dcc67873/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: letor_refactored.diff Type: application/octet-stream Size: 14284 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120424/dcc67873/attachment-0002.obj>
Thanks Parth! The improved structure looks good and workflow makes it easier for me to plug-in my code. I will make appropriate changes wherever necessary and keep everyone updated on the same. Regards, Rishabh. On Tue, Apr 24, 2012 at 2:41 PM, Parth Gupta <parthg.88 at gmail.com> wrote:> Hello Rishabh, > > The attached diff file should help you to refactor the existing letor code > and plug in your code easily. I have defined the header files with the > necessary flow. I have also specified the ranker class, which should be > implemented by a new LTR models, ListNet and ListMLE in your case. The > evaluation file should be used for validating the performance of the > algorithm in the training so which you plan to implement. You should take > the corresponding definitions from the letor_internal.cc and create the > corresponding .cc files. Feel free to do necessary changes and in case of > any doubt, feel free to ask. > > Regards, > Parth. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120424/1bd438b1/attachment.html>
On Tue, Apr 24, 2012 at 02:41:34PM +0530, Parth Gupta wrote:> The attached diff file should help you to refactor the existing letor code > and plug in your code easily.Not sure if it is useful as Rishabh was wondering about starting over, but I've stripped out changes which are no longer relevant after the letor merge to trunk which I've now mostly completed, and attached an updated patch. If do we use this patch, the methods which we intend the user to override should probably all be virtual. Cheers, Olly -------------- next part -------------- A non-text attachment was scrubbed... Name: letor_refactored_updated.diff Type: text/x-diff Size: 11195 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120516/5dd761b1/attachment.diff>
how could we read the source code of letor part ? 2012/5/16 Olly Betts <olly at survex.com>> On Tue, Apr 24, 2012 at 02:41:34PM +0530, Parth Gupta wrote: > > The attached diff file should help you to refactor the existing letor > code > > and plug in your code easily. > > Not sure if it is useful as Rishabh was wondering about starting over, > but I've stripped out changes which are no longer relevant after the > letor merge to trunk which I've now mostly completed, and attached an > updated patch. > > If do we use this patch, the methods which we intend the user to > override should probably all be virtual. > > Cheers, > Olly > > _______________________________________________ > Xapian-devel mailing list > Xapian-devel at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-devel > >-- ??? ??????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120528/3c622020/attachment.html>