fix wrapper checkNAN

This commit is contained in:
tqchen
2015-03-08 09:52:59 -07:00
parent d202d8b977
commit e79840e620
2 changed files with 4 additions and 3 deletions

View File

@@ -28,12 +28,13 @@ extern "C" {
void (*Check)(int exp, const char *fmt, ...) = XGBoostCheck_R;
void (*Error)(const char *fmt, ...) = error;
}
} // namespace utils
namespace wrapper {
bool CheckNAN(float v) {
return ISNAN(v);
}
}
} // namespace utils
} // namespace wrapper
namespace random {
void Seed(unsigned seed) {