This commit is contained in:
tqchen
2014-05-04 00:09:16 -07:00
parent 2057dda560
commit 21f93ffd6a
3 changed files with 10 additions and 0 deletions

View File

@@ -170,6 +170,9 @@ extern "C"{
}
return new Booster( mats );
}
void XGBoosterFree( void *handle ){
delete static_cast<Booster*>(handle);
}
void XGBoosterSetParam( void *handle, const char *name, const char *value ){
static_cast<Booster*>(handle)->SetParam( name, value );
}