I would appreciate if someone from Kaggle clarifies whether keeping this particular order in our submissions matters. It is quite difficult to rearrange the output to match this particular order. If it turns out that the submission really has to be made in this particular order, it would be a great help for one team to post their R code for it. Thank you.
|
Joined 20 Mar '11 |
|
|
Joined 14 Feb '11 |
|
|
Posts 77 Thanks 29 Joined 28 May '10 |
@Gary: Just use sort=FALSE in merge, e.g. (and assuming here that your target is log1p(DaysInHospital) which is usually the best): log1p.predict <- predict(model.train, newdata = score.x) Hope this helps someone.
Thanked by
R. Kaan Ozbayrak
|
|
Joined 30 Apr '11 |
|
|
Thanks 166 Joined 21 Aug '10 |
The current scoring code effectively ignores whatever you put in the first two columns, so the order of member id's does matter. One possible suggestion is that you get the order we expect in a file format you like, then you can use a dictionary/map internally to calculate the prediction for each member and then at the very end just iterate through the expected order getting the value from your dictionary before you submit.
Thanked by
R. Kaan Ozbayrak
|
|
Joined 14 Feb '11 |
|
|
Joined 30 Apr '11 |
|
|
Posts 1 Joined 26 Jul '11 |
|
|
Joined 7 Jul '11 |
|
|
Thanks 28 Joined 12 Nov '10 |
|
Flagging is a way of notifying administrators that this message contents inappropriate or abusive content. Are you sure this forum post qualifies?