add accuracy
This commit is contained in:
parent
d9ff9fadf6
commit
a191863213
@ -24,6 +24,7 @@ python mknfold.py agaricus.txt 1
|
|||||||
../../xgboost mushroom.conf task=dump model_in=m3.model fmap=featmap.txt name_dump=dump.m3.txt
|
../../xgboost mushroom.conf task=dump model_in=m3.model fmap=featmap.txt name_dump=dump.m3.txt
|
||||||
../../xgboost mushroom.conf task=dump model_in=m4.model fmap=featmap.txt name_dump=dump.m4.txt
|
../../xgboost mushroom.conf task=dump model_in=m4.model fmap=featmap.txt name_dump=dump.m4.txt
|
||||||
|
|
||||||
|
|
||||||
echo "========m1======="
|
echo "========m1======="
|
||||||
cat dump.m1.txt
|
cat dump.m1.txt
|
||||||
|
|
||||||
@ -33,10 +34,19 @@ cat dump.m2.txt
|
|||||||
echo "========m3========"
|
echo "========m3========"
|
||||||
cat dump.m3.txt
|
cat dump.m3.txt
|
||||||
|
|
||||||
|
# statistics are print into stderr
|
||||||
|
../../xgboost mushroom.conf model_in=m3.model task=eval 2>eval.m3.txt
|
||||||
|
cat eval.m3.txt
|
||||||
|
|
||||||
echo "========m4========"
|
echo "========m4========"
|
||||||
cat dump.m4.txt
|
cat dump.m4.txt
|
||||||
|
|
||||||
|
../../xgboost mushroom.conf model_in=m4.model task=eval 2>eval.m4.txt
|
||||||
|
cat eval.m4.txt
|
||||||
|
|
||||||
|
|
||||||
echo "========full======="
|
echo "========full======="
|
||||||
cat dump.full.txt
|
cat dump.full.txt
|
||||||
|
|
||||||
|
../../xgboost mushroom.conf model_in=full.model task=eval 2>eval.full.txt
|
||||||
|
cat eval.full.txt
|
||||||
@ -40,12 +40,13 @@ namespace xgboost{
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if( task == "interact" ){
|
if( task == "interact" ){
|
||||||
this->TaskInteractive();
|
this->TaskInteractive(); return 0;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
if( task == "dumppath" ){
|
if( task == "dumppath" ){
|
||||||
this->TaskDumpPath();
|
this->TaskDumpPath(); return 0;
|
||||||
return 0;
|
}
|
||||||
|
if( task == "eval" ){
|
||||||
|
this->TaskEval(); return 0;
|
||||||
}
|
}
|
||||||
if( task == "pred" ){
|
if( task == "pred" ){
|
||||||
this->TaskPred();
|
this->TaskPred();
|
||||||
@ -160,7 +161,9 @@ namespace xgboost{
|
|||||||
printf("\nupdating end, %lu sec in all\n", elapsed );
|
printf("\nupdating end, %lu sec in all\n", elapsed );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
inline void TaskEval( void ){
|
||||||
|
learner.EvalOneIter( 0 );
|
||||||
|
}
|
||||||
inline void TaskInteractive( void ){
|
inline void TaskInteractive( void ){
|
||||||
const time_t start = time( NULL );
|
const time_t start = time( NULL );
|
||||||
unsigned long elapsed = 0;
|
unsigned long elapsed = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user