Sha256: 83275deb204fe5fc19dd5c4319458657ccb9b3dd017a59aab79175bc61ae7567
Contents?: true
Size: 372 Bytes
Versions: 16
Compression:
Stored size: 372 Bytes
Contents
module XGBoost module Utils private def check_result(err) if err != 0 # make friendly message = FFI.XGBGetLastError.split("\n").first.split(/:\d+: /, 2).last raise XGBoost::Error, message end end # read_uint64 not available on JRuby def read_uint64(ptr) ptr.read_array_of_uint64(1).first end end end
Version data entries
16 entries across 16 versions & 1 rubygems