small fix

This commit is contained in:
kalenhaha 2014-04-06 22:54:41 +08:00
parent 6bc71df494
commit 1fa367b220
2 changed files with 3 additions and 2 deletions

1
dev/README Normal file
View File

@ -0,0 +1 @@
This directory contains codes under development

View File

@ -17,12 +17,12 @@ int main(int argc, char *argv[]) {
xgboost::random::Seed(0);
xgboost::base::BoostTask tsk;
xgboost::utils::ConfigIterator itr(argv[1]);
int learner_index = 0;
/* int learner_index = 0;
while (itr.Next()){
if (!strcmp(itr.name(), "learning_task")){
learner_index = atoi(itr.val());
}
}
}*/
xgboost::rank::RankBoostLearner* rank_learner = new xgboost::rank::RankBoostLearner;
xgboost::base::BoostLearner *parent = static_cast<xgboost::base::BoostLearner*>(rank_learner);
tsk.SetLearner(parent);