add interact mode

This commit is contained in:
tqchen
2014-05-03 23:24:22 -07:00
parent 6fd77cbb24
commit 2057dda560
4 changed files with 40 additions and 3 deletions

View File

@@ -210,5 +210,13 @@ extern "C"{
static_cast<Booster*>(handle)->DumpModel( fo, featmap, false );
fclose( fo );
}
void XGBoosterUpdateInteract( void *handle, void *dtrain, const char *action ){
Booster *bst = static_cast<Booster*>(handle);
DMatrix *dtr = static_cast<DMatrix*>(dtrain);
bst->CheckInit(); dtr->CheckInit();
std::string act( action );
bst->UpdateInteract( act, *dtr );
}
};