solr ltr jar is not able to recognize MultipleAdditiveTreesModel

2018-02-15 Thread kusha.pande
Hi I am trying to upload a training model generated from ranklib jar using
lamdamart mart.

The model is like 
{"class":"org.apache.solr.ltr.model.MultipleAdditiveTreesModel",
"name":"lambdamartmodel",
"params" : {
"trees" :[
   {
  "id": "1",
  "weight": "0.1",
  "split": {
 "feature": "8",
 "threshold": "7.111333",
 "split": [
{
   "pos": "left",
   "feature": "8",
   "threshold": "5.223557",
   "split": [
  {
 "pos": "left",
 "feature": "8",
 "threshold": "3.2083516",
 "split": [
{
   "pos": "left",
   "feature": "1",
   "threshold": "100.0",
   "split": [
  {
 "pos": "left",
 "feature": "8",
 "threshold": "2.2626402",
 "split": [
{
   "pos": "left",
   "feature": "8",
   "threshold": "2.2594802",
   "split": [
  {
 "pos": "left",
 "output": "-1.6371088"
  },
  {
 "pos": "right",
 "output": "-2.0"
  }
   ]
},
{
   "pos": "right",
   "feature": "8",
   "threshold": "2.4438097",
   "split": [
  {
 "pos": "left",
 "feature": "2",
 "threshold": "0.05",
 "split": [
{
   "pos": "left",
   "output": "2.0"
},
..


getting an exception as :
Exception: Status: 400 Bad Request
Response: {
  "responseHeader":{
"status":400,
"QTime":43},
  "error":{
"metadata":[
  "error-class","org.apache.solr.common.SolrException",
  "root-error-class","java.lang.RuntimeException"],
"msg":"org.apache.solr.ltr.model.ModelException: Model type does not
exist org.apache.solr.ltr.model.MultipleAdditiveTreesModel",
"code":400}}
.

I have used RankLib-2.1-patched.jar to generate the model and converted the
generated xml to json.





--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Learning to rank - Bad Request

2018-03-04 Thread kusha.pande
Hi Vincent,

Can you please elaborate more when u say u posted 'posted name feature one
by one' ?

I am getting the same error when i am trying to upload features for any
other collection other than techproducts.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html